您的位置:首页 > 运维架构 > Nginx

nginx 配置文件夹浏览

2016-02-17 00:00 543 查看
摘要: nginx 配置文件夹浏览

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;

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: