#user nobody;
worker_processes 1; #error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info; #pid logs/nginx.pid; events {
worker_connections 1024;
} http {
include mime.types;
default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on;
#tcp_nopush on; #keepalive_timeout 0;
keepalive_timeout 65; #gzip on; upstream tomcat-cos { #server 172.16.17.211;
#server 172.16.17.222;
server 172.16.18.18;
#server 172.16.17.1
} server {
listen 81;
server_name 127.0.0.1; #charset koi8-r; #access_log logs/host.access.log main;
error_page 405 =200;
location / {
#root "proxy_pass http://172.16.17.222";
#root "D:/udf/trunk/10-udf-www/11-udf-ecw-www/src";
#root "D:/udf/branches/aliy-release/10-udf-www/11-udf-ecw-www/src";
root "D:/udfex/udfex-website-repo/ecw-website/src";
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
location ^~ /udf-img/ {
proxy_pass http://udf-ecw-test.oss-cn-beijing.aliyuncs.com;
} location /udf-wechat{
#alias "D:/udf/trunk/10-udf-www/15-udf-wap-www/www";
alias "D:/udf/branches/release-wechat/10-udf-www/15-udf-wap-www/www";
index index.html;
autoindex on;
autoindex_exact_size on;
autoindex_localtime on;
try_files $uri $uri/ /index.html =404;
} location /03-udf-oso {
proxy_pass http://tomcat-cos;
} location /03-udf-cos{
#proxy_pass http://tomcat-cos;
#proxy_pass http://test.cos.udfex.com;
proxy_pass http://192.168.8.181:81;
} location /05-udf-ecw {
#proxy_pass http://tomcat-cos;
#proxy_pass http://www.udfex.com;
proxy_pass http://test.www.udfex.com;
} location /udf-cos {
alias "D:/udfexpress/10-udf-www/12-udf-cos-www/src";
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
}
location /udf-oso{
alias "D:/udfexpress/10-udf-www/14-udf-oso-www/src";
#alias "D:/06.ProjectCode/udfexpress/trunk/10-udf-www/14-udf-oso-www";
index index.html index.htm;
autoindex on;
autoindex_exact_size on;
autoindex_localtime on;
try_files $uri $uri/ /index.html =404;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
} server {
listen 82;
server_name 127.0.0.2;
error_page 405 =200;
location / {
root "F:/udfex-website/udfex-website/src";
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
} location /05-udf-ecw {
proxy_pass http://test.www.udfex.com;
#proxy_pass 192.168.8.89;
}
} server {
listen 83;
server_name 127.0.0.3;
error_page 405 =200;
location / {
root "D:\udfex-cos-website\cos-website\src";
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
} location /03-udf-cos {
proxy_pass http://test.cos.udfex.com;
#proxy_pass http://192.168.8.181:81;
}
} server {
listen 84;
server_name 127.0.0.4;
error_page 405 =200;
location / {
root "D:\bbs\bbs-website\src";
index index.html index.htm;
try_files $uri $uri/ /index.html =404;
proxy_pass http://bbs.udfex.com;
}
} }