7 Star 4 Fork 1

木杉 / shop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nginx.conf 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
zhang 提交于 2016-08-22 17:26 . shop
server
{
listen 80;
#listen [::]:80;
server_name demo.tpshop3.com localhost;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/TPshop_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/tpshop.com.log access;
error_page 404 /404.php;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/feng003/shop.git
git@gitee.com:feng003/shop.git
feng003
shop
shop
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891