The reverse proxy feature is useful when you want to access internal sites from the outside network.
- NethServer is the firewall of your LAN
- You have a domain http://mydomain.com
- You would like http://mydomain.com/mysite to forward to the internal server (internal IP: 192.168.2.100)
In this scenario create a new record under Reverse proxy page. Set
the Name of the item to
mysite and the Target URL to
If only encrypted connections are allowed, enable the Require SSL encrypted connection.
Only clients from certain networks can be allowed to connect, by specifying a comma-separated list of CIDR networks under the Access from CIDR networks field.
If Reverse proxy page is not enough, you can always configure Apache
manually, by creating a new file inside
/etc/httpd/conf.d/myproxypass.conf file with this content:
<VirtualHost *:443> SSLEngine On SSLProxyEngine On ProxyPass /owa https://myserver.exchange.org/ ProxyPassReverse /owa https://myserver.exchange.org/ </VirtualHost> <VirtualHost *:80> ServerName www.mydomain.org ProxyPreserveHost On ProxyPass / http://10.10.1.10/ ProxyPassReverse / http://10.10.1.10/ </VirtualHost>
Please refer to official Apache documentation for more information: http://httpd.apache.org/docs/2.2/mod/mod_proxy.html