nginx之laravel项目虚拟主机站点配置示例

tech2025-08-31  9

server { listen 80; server_name www.zhifou.com; root "D:/wamp/WWW/zhifou/public"; location / { index index.html index.htm index.php; try_files $uri $uri/ /index.php?$query_string; } location ~ .php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
最新回复(0)