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;
}
}
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;
}
}
相关文章推荐
- compare `lvs/haproxy/nginx`
- 阿岳之_nginx负载均衡篇(二)
- 阿岳之_nginx篇(一)
- Mac os X下使用Nginx跟PHP的连接问题
- nginx 配置 php 的 CI 框架的web
- Nginx、LVS及HAProxy负载均衡软件的优缺点详解
- nginx配置备忘
- nginx 主动防御DDOS攻击
- Nginx安装配置篇(Session共享)
- Nginx 因 Selinux 服务导致无法远程訪问
- HLS/MPEG-DASH/RTMP with nginx
- Nginx安装教程
- nginx 命令行参数 启动 重启 重载 停止
- Linux下Nginx的安装步骤
- webrtc学习之旅Getting Started
- nginx大流量负载调优
- Nginx错误页面隐藏版本号
- nginx+nginx-rtmp-module+ffmpeg搭建流媒体服务器
- ubuntu 源码安装 nginx
- Nginx 负载均衡 后端 监控检测 nginx_upstream_check_module 模块的使用