server {
listen 80;
server_name yourdomain.com;
location / {
root /usr/local/nginx/html/yourdomain.com;
index index.html index.htm index.php;
if ( !-e $request_filename ) {
rewrite ^/(.*)? /index.php?/$1 last;
break;
}
}
location ~ \.php$ {
root /usr/local/nginx/html/yourdomain.com;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
error_log /www/logs/yourdomain.com_error.log;
access_log /www/logs/yourdomain.com_access.log main;
}
laravel nginx配置
猜你喜欢
转载自blog.csdn.net/Schopencher/article/details/83212889
今日推荐
周排行