server {
listen 81;
server_name localhost;
location / {
autoindex on;
autoindex_exact_size off;
root /data/nginx/web;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
server {
listen 80;
server_name localhost;
location ~ ^/(img|data|js|css|html|templates)/ {
root /data/nginx/web/WalkDemo;
}
location ~ ^/customizedtraffic {
fastcgi_pass 0.0.0.0:9091;
fastcgi_param QUERY_TYPE traffic;
include fastcgi_params;
}
location ~ ^/agentserver {
proxy_pass_header Server;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_pass http://100.69.195.166:7143;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}