ZBLOG PHP程序Nginx服务器环境伪静态规则设置过程
发布时间:2019-12-16 11:14:55作者:admin点击:


/usr/local/nginx/conf/vhost/ 我们需要到这个目录中找到对应站点域名的.conf文件 代码如下
server {
listen 80;
server_name shuangshierjie.com www.shuangshierjie.com;
access_log /home/wwwlogs/shuangshierjie.com_nginx.log combined;
index index.html index.htm index.php;
include zblog.conf;
root /home/wwwroot/shuangshierjie.com;
location ~ .*\.(php|php5)?$ {
#fastcgi_pass remote_php_ip:9000;
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ {
expires 30d;
access_log off;
}
location ~ .*\.(js|css)?$ {
expires 7d;
access_log off;
}
}
- 上一篇 : 修改ECSHOP首页FLASH幻灯片宽度和高度尺寸设置
- 下一篇 : ecshop商品购买页每页显示条数的修改