tp3.2迁入nginx 大圣版
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tp3.2迁入nginx 大圣版相关的知识,希望对你有一定的参考价值。
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 大圣版的主要内容,如果未能解决你的问题,请参考以下文章
使用tp3.2框架开发的项目在nginx上配置rewrite规则时遇到的问题