Proxy pass

The proxy pass feature is useful when you want to access internal sites from the outside network.

Proxy pass configuration must be done via command line. Before proceed, make sure nethserver-httpd package in installed:

yum install -y nethserver-httpd


Commands for this example:

db proxypass set mysite ProxyPass
db proxypass setprop mysite Target
db proxypass setprop mysite Description "My internal server"
db proxypass setprop mysite HTTP on
db proxypass setprop mysite HTTPS on
signal-event nethserver-httpd-update

You can also restrict the access to a list of IPs:

db proxypass setprop mysite ValidFrom,
signal-event nethserver-httpd-update

Manual configuration

If this is not enough, you can always manually create your own proxy pass by creating a new file inside /etc/httpd/conf.d/ directory.


Create /etc/httpd/conf.d/myproxypass.conf file with this content:

<VirtualHost *:443>
    SSLEngine On
    SSLProxyEngine On
    ProxyPass /owa
    ProxyPassReverse /owa

<VirtualHost *:80>
    ProxyPreserveHost On
    ProxyPass /
    ProxyPassReverse /

Please refer to official Apache documentation for more information: