码迷,mamicode.com
首页 > 其他好文 > 详细

tp3.2迁入nginx 大圣版

时间:2017-02-13 13:47:22      阅读:246      评论:0      收藏:0      [点我收藏+]

标签:ams   name   charset   path   path_info   dex   max   cgi   script   

server {
client_max_body_size 5M;
listen 8081;
server_name localhost;

#charset koi8-r;

#access_log logs/host.access.log main;

location / {
root html/hdcms;
index index.html index.htm index.php;
try_files $uri /index.php$uri;
}

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ .+\.php($|/) {
root html/hdcms;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#include fastcgi_params;
include fastcgi.conf;
}

# deny access to .htaccess files, if Apache‘s document root
# concurs with nginx‘s one
#
#location ~ /\.ht {
# deny all;
#}
}

tp3.2迁入nginx 大圣版

标签:ams   name   charset   path   path_info   dex   max   cgi   script   

原文地址:http://www.cnblogs.com/zhangsima/p/6393382.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!