server{ listen 80; server_name www.s.com; root "D:/phpstudy/PHPTutorial/WWW/SuperWorks/public"; # 该项要修改为你准备存放相关网页的路径 index index.html index.php index.htm; location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } }
phpstudy中的nginx开发Laravel的对应配置
猜你喜欢
转载自www.cnblogs.com/Richard-Tang/p/10330477.html
今日推荐
周排行