user nginx;
worker_processes 4;
error_log
/var/log/nginx/error
.log warn;
pid
/var/run/nginx
.pid;
events {
worker_connections 1024;
}
http {
include
/etc/nginx/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
/var/log/nginx/access
.log main;
sendfile on;
keepalive_timeout 65;
include
/etc/nginx/conf
.d/*.conf;
upstream pay_server {
ip_hash;
server 10.74.248.01:8088 max_fails=2 fail_timeout=2;
server 10.74.248.02:8088 max_fails=2 fail_timeout=2;
}
upstream print_server {
ip_hash;
server 10.74.248.03:2001 max_fails=2 fail_timeout=2;
server 10.74.248.04:2001 max_fails=2 fail_timeout=2;
}
upstream accss_door_server {
ip_hash;
server 10.74.248.05:2002 max_fails=2 fail_timeout=2;
server 10.74.248.06:2002 max_fails=2 fail_timeout=2;
}
server {
listen 80;
server_name wab.kupu.ccoop.com.cn;
location
/invengo
{
proxy_pass http:
//pay_server
;
index index.jsp index.html index.htm;
}
location
/invengo/epc
{
proxy_pass http:
//print_server
;
index index.jsp index.html index.htm;
}
location
/invengo/print
{
proxy_pass http:
//print_server
;
index index.jsp index.html index.htm;
}
location
/checkout
{
proxy_pass http:
//accss_door_server
;
index index.jsp index.html index.htm;
}
location
/asset
{
proxy_pass http:
//accss_door_server
;
index index.jsp index.html index.htm;
}
}