4 Star 0 Fork 0

深银联 / 中蔬金服

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nginx.conf 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
许如 提交于 2017-12-12 11:52 . izh
server
{
listen 80;
#listen [::]:80;
server_name demo.yhp2p3.com localhost;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/YHp2p_v1.0;
#include phpcms.conf;
#error_page 404 /404.html;
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
location ~ .php($|/) {
set $script $uri;
set $path_info "";
if ($uri ~ "^(.+.php)(/.+)") {
set $script $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$script;
fastcgi_param SCRIPT_NAME $script;
fastcgi_param PATH_INFO $path_info;
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
#error_page 404 = /404.php;
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
#access_log off;
access_log /home/wwwlogs/yhp2p.com.log access;
error_page 404 /404.php;
}
1
https://gitee.com/syljt/zsjf.git
git@gitee.com:syljt/zsjf.git
syljt
zsjf
中蔬金服
master

搜索帮助