Laravel 部署在子目录时 Nginx 设置


location ^~ /folder { alias /home/wwwroot/xxx.com/folder/public; if (!-e $request_filename) { rewrite ^ /folder/index.php last; } location ~ \.php$ { if (!-f $request_filename) { return 404; } fastcgi_pass unix:/tmp/php-cgi-71.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $request_filename; include fastcgi_params; } }

66 total views, 2 views today

Revisions

No comments yet.

发表评论