大发彩票盘口平台,带独立代理后台thinkphp5.0配置nginx重写规则

大发彩票盘口平台,带独立代理后台thinkphp5.0配置nginx重写规则
程序源码参数说明:

运行环境:php5.2+mysql

界面语言:简体中文

源码授权:无加密文件及认证授权,永久性可直接使用。

版本支持:PC/WAP网页版

编程语言:PHP

手机版独家对接的,完整无错! 此源码经过测试人员实测截图,保证100%和截图一致!!!

server {
listen 80; #端口号
server_name demo.aa.com; #域名
access_log /data/rootlogs/demo.aa.com_nginx.log combined;#日志
index index.html index.htm index.php;
root /data/root/default/public/; #路径

include /usr/local/nginx/conf/rewrite/none.conf;
#error_page 404 /404.html;
#error_page 502 /502.html;

location ~ [^/].php(/|$) {
#fastcgi_pass remote_php_ip:9000;
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}

location ~ ..(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
expires 30d;
access_log off;
}
location ~ .
.(js|css)?$ {
expires 7d;
access_log off;
}
location ~ /.ht {
deny all;
}
}

猜你喜欢

转载自blog.51cto.com/13855762/2137160