5 回答
LIANHK
TA贡献78条经验 获得超17个赞
server { # php listen 1111; server_name php_dev_1; # 这里就是域名 root /home/webserver/discuz/upload; index index.php; location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; # rewrite mode #rewrite ^(.*)$ /index.php/$1 last; # pathinfo mode } } location ~ \.php { fastcgi_hide_header X-Powered-By; fastcgi_pass 127.0.0.1:2000; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fastcgi_read_timeout 300; } }
- 5 回答
- 0 关注
- 2383 浏览
添加回答
举报
0/150
提交
取消