用于wordpress站点的nginx服务器配置(PHP)

来源:互联网 发布:mysql 5.6 json函数 编辑:程序博客网 时间:2024/05/22 04:52

server {listen 80;listen 443 ssl;server_name treephp.yioio.com;fastcgi_max_temp_file_size 0;charset utf-8;access_log /yioio/Logs/nginx/treephp.yioio.com.log;location ~* ^.+\.(js|css|json|map|html|jpg|jpeg|gif|png|svg|ico)$ {root /yioio/code/treephp;}location / {root /yioio/code/treephp;fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;include fastcgi_params;if (-f $request_filename/index.html){rewrite (.*) $1/index.html break;}if (-f $request_filename/index.php){rewrite (.*) $1/index.php;}if (!-f $request_filename){rewrite (.*) /index.php;}}}


1 0
原创粉丝点击