zencart和其他的程序nginx配置文件:
server {listen 109.230.244.110:80;
server_name 94seo.com;
rewrite ^/(.*) $ permanent;
}
server {
listen ip:80;
server_name ;
try_files $uri @backend;
location @backend {
proxy_pass :80;
include proxy.conf;
}
#将请求送到后端服务器处理
location / {
root /home/wwwroot/94seo.com/html;
index index.php;
}
location ~ \.html {
proxy_pass :80;
include proxy.conf;
}
#html 也转发到后端服务器.litespeed对.htaccess支持很好.
#也可以在nginx进行重写.方法这里就不多说了
location ~ \.php$ {
proxy_pass :80;
include proxy.conf;
}
#php请求转到后端
location ~ /\.ht {
deny all;
}
#禁止访问.htaccess文件
location ~* \.(jpg|jpeg|png|gif|css|js|swf|mp3|avi|flv|xml|zip|rar)$ {
root /home/wwwroot/outletskys.com/html;
gzip on;
gzip_types text/plain application/x-javascript text/css application/xml;
expires 30d;
break;
}
#nginx在前端处理静态文件.
}
nginx for Windows v1.9.12 开发版下载