port forwarding in windows

前端 未结 3 822
太阳男子
太阳男子 2020-11-28 16:52

I have two network board in my pc:

The main one has the local ip -> 192.168.1.111 The secondary ones has the local ip -> 192.168.0.200

The main one has inter

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-28 17:28

    nginx is useful for forwarding HTTP on many platforms including Windows. It's easy to setup and extend with more advanced configuration. A basic configuration could look something like this:

    events {}
    
    http {
         server {
    
            listen 192.168.1.111:4422;
    
            location / {
                proxy_pass http://192.168.2.33:80/;
            }
         }
    }
    

提交回复
热议问题