192.168.1.1 路由器设置 192.168.1.1打不开 192.168.1.1 路由器设置 局域网限速软件 192.168.0.1 TP-LINK路由器设置 路由器密码 192.168.1.252 192.168.1.254 192.168.1.100 192.168.1.2 测网速 电信 192.168.1.1进不去 上网知道 查网速 如何提高网速 192.168.1.253 网络测速 路由器限速设置 tp link无线路由器设置,tp-link无线路由器设置, 路由器设置图解 无线路由器设置 192.168.1.101

Multiple Web Servers

     

    Multiple Web Servers It works only for http connections not https connections , as transparent web proxy does not support https connections. Imagine, that you have only one public IP address i.e. xxx.xxx.xxx.xxx, but want to host 3 web servers: 123...

     

    Multiple Web Servers

     

    It works only for http connections not https connections, as transparent web proxy does not support https connections.

    Imagine, that you have only one public IP address i.e. xxx.xxx.xxx.xxx, but want to host 3 web servers:

    123.com@192.168.0.2
    abc.com@192.168.0.3
    456.com@192.168.0.4
     

    1. Configure your web proxy

    
    /ip web-proxy 
    
    set enabled=yes src-address=0.0.0.0 port=8080 hostname="your.proxy" \ 
    
    transparent-proxy=yes parent-proxy=0.0.0.0:0 \ 
    
    cache-administrator="webmaster" max-object-size=4096KiB cache-drive=system \ 
    
    max-cache-size=unlimited max-ram-cache-size=unlimited 
    
    /ip web-proxy access 
    
    add dst-port=23-25 action=deny comment="block telnet & spam e-mail relaying" \ 
    
    disabled=no 
    
    add dst-port=80 action=allow comment="Enable Http Connection" disabled=no 
    
    

    2. Configure Static DNS of domains to resolve to internal ip

    
    /ip dns static add name=123.com address=192.168.0.2 
    
    /ip dns static add name=abc.com address=192.168.0.3 
    
    /ip dns static add name=456.com address=192.168.0.4 
    
    /ip dns static add name=www.123.com address=192.168.0.2 
    
    /ip dns static add name=www.abc.com address=192.168.0.3 
    
    /ip dns static add name=www.456.com address=192.168.0.4 
    
    

    3. Configure NAT to redirect traffic to webproxy

    
    /ip firewall nat 
    
    add chain=dstnat in-interface=outside dst-address=xxx.xxx.xxx.xxx protocol=tcp \ 
    
    dst-port=80 action=redirect to-ports=8080 comment="" disabled=no 
    
    

    分享到:

     

     

    tags:Multiple,Web,Servers,Multiple,

网络设备栏目本周热门文章


ICP证:粤B2-20040647

版权所有 @中国路由网
未经授权禁止转载、摘编、复制或建立镜像,如有违反,追究法律责任。