Nginx請求轉發

1.好比說我要將127.0.0.1/topics上的全部請求轉發到xxx:xxx/上html

修改 sudo vim /etc/nginx/nginx.confnginx

        server {
               listen       80;
                server_name  127.0.0.1;
                location /topics {
                    #root   html;
                    #index  index.html index.htm;
                proxy_pass http://xxx:xxx;
                }
            }
相關文章
相關標籤/搜索