nginx反向代理
server {
}
后端nginx
server {
listen 80;
server_name zeyu.lyxxxx.com 139.129.xxx.xxx alias ;
location / {
root E:/www/2016-5/zeyu/2baner/jx;
index index.html index.htm default.html default.htm index.php ;
}
autoindex off;
include advanced_settings.conf;
location ~* .*\/(images|uploads|member|install)\/.*\.(php|php5|phps|asp|aspx|jsp)$ {
deny all;
}
location ~ ^.+\.php {
root E:/www/2016-5/zeyu/2baner/jx;
fastcgi_pass bakend;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi.conf;
}
}
#server zeyu.lyxxxx.com end}
server {
listen 80;
server_name yjzz.lyxxxx.com 139.129.xxx.xxx alias ;
location / {
root E:/www/2016-5/yjzz/3banner/xdz;
index index.html index.htm default.html default.htm index.php ;
}
autoindex off;
include advanced_settings.conf;
#include expires.conf;
location ~* .*\/(images|uploads|member|install)\/.*\.(php|php5|phps|asp|aspx|jsp)$ {
deny all;
}
location ~ ^.+\.php {
root E:/www/2016-5/yjzz/3banner/xdz;
fastcgi_pass bakend;
fastcgi_index index.php;
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi.conf;
}
}
#server yjzz.lyzxxxx.com end}