nginx 反向代理:
[root@YZ2-25-207-92 logs]# cat /etc/nginx/conf.d/default.conf
#
# The default server
#
server {
listen 8080 default_server;
listen [::]:8080 default_server;
server_name _;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
alias /export/servers/xdbamp_web/;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /workorder/ {
proxy_pass http://172.25.207.92:80;
#proxy_pass http://172.25.68.165:80;
#proxy_pass http://xdbamp.cbpmgt.com;
#index index.html index.htm;
}
location /userinfo {
proxy_pass http://172.25.68.165:80;
}
location /login {
#proxy_pass http://172.25.207.92:80;
proxy_pass http://172.25.68.165:80;
#index index.html index.htm;
}
location /logout {
#proxy_pass http://172.25.207.92:80;
proxy_pass http://172.25.68.165:80;
#index index.html index.htm;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}