user wls81 wls;
worker_processes 5;
error_log logs/error.log;
pid logs/nginx.pid;
events {
use epoll;
worker_connections 200000;
}
http {
# include mime.types;
default_type application/octet-stream;
server_tokens off;
sendfile on;
keepalive_timeout 65;
upstream szsc-zwt-um {
server 10.12.35.166:9060 max_fails=2 fail_timeout=5s;
}
upstream szsc-zwt-meeting {
server 10.12.35.161:45231 max_fails=2 fail_timeout=5s;
}
upstream szsc-zwt-mtroom {
server 10.12.35.161:9050 max_fails=2 fail_timeout=5s;
}
upstream szsc-zwt-public {
server 10.12.35.160:45231 max_fails=2 fail_timeout=5s;
}
upstream szsc-zwt-aggregate {
server 10.12.35.162:9030 max_fails=2 fail_timeout=5s;
}
upstream szsc-zwt-schedule {
server 10.12.35.161:9040 max_fails=2 fail_timeout=5s;
}
upstream szsc-zwt-admin {
server 10.12.35.163:45231 max_fails=2 fail_timeout=5s;
}
log_format access '$remote_addr - $remote_user [$time_local] "$request"' '$status $body_bytes_sent "$http_referer"' '"$http_user_agent" $http_x_forwarded_for';
server {
listen 0.0.0.0:33456;
server_name ng_ng_szsc-zwt-stg10;
access_log logs/host.access.log access;
# include /wls/apache/appsystems/ng_ng_szsc-zwt-stg10/config/custom.conf;
rewrite ^/f5monweb(.*) /monitor_ng/$1;
location /peimcmeeting/ {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
#proxy_set_header X-Forwarded-Proto https;
proxy_redirect http:// $scheme://;
proxy_pass http://szsc-zwt-meeting;
}
location /userplatforms/ {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
#proxy_set_header X-Forwarded-Proto https;
proxy_redirect http:// $scheme://;
proxy_pass http://szsc-zwt-um;
}
location /HMP/ {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
#proxy_set_header X-Forwarded-Proto https;
proxy_redirect http:// $scheme://;
proxy_pass http://szsc-zwt-public;
}
location /aggregate {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto https;
proxy_pass http://szsc-zwt-aggregate;
}
location /mtroom {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto https;
proxy_pass http://szsc-zwt-mtroom;
}
location /schedule {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto https;
proxy_pass http://szsc-zwt-schedule;
}
location /hm-admin {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $http_x_forwarded_for;
# proxy_set_header X-Forwarded-Proto https;
proxy_pass http://szsc-zwt-admin;
}
location / {
root /wls/apache/appsystems/ng_ng_szsc-zwt-stg10/;
index index.html index.htm;
}
# include location_proxy.conf;
location /monitor_ng {
root /wls/apache;
index f5check.htm f5check.jsp;
}
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
allow 10.0.0.0/8;
deny all;
}
}
# include sslserver.conf;
}