nginx 配置文件夾瀏覽

    server {css

        listen       81;html

        server_name  localhost;nginx


        location / {web

            autoindex on;server

            autoindex_exact_size off;htm

            root   /data/nginx/web;rem

        }io


        error_page   500 502 503 504  /50x.html;ast

        location = /50x.html {proxy_pass

            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;

        }

    }

相關文章
相關標籤/搜索