tonglin0325

1.比如说我要将127.0.0.1/topics上的所有请求转发到xxx:xxx/上

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

        server {
               listen       80;
                server_name  127.0.0.1;
                location /topics {
                    #root   html;
                    #index  index.html index.htm;
                proxy_pass http://xxx:xxx;
                }
            }

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-03-04
  • 2021-08-06
  • 2022-12-23
  • 2021-11-23
  • 2021-08-30
  • 2021-09-12
猜你喜欢
  • 2022-03-06
  • 2021-11-19
  • 2021-11-23
  • 2022-02-17
相关资源
相似解决方案