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;
                }
            }
相关文章
相关标签/搜索