< All Topics Main Linux Apache Conf Apache .conf file forward to another host. Print Apache .conf file forward to another host. Posted01/01/2022 Updated01/01/2022 ByPawel Apache .conf file forward to another host. <VirtualHost *:80>ServerAdmin [email protected]ServerName pawel.winServerAlias www.pawel.win# DocumentRoot /var/www/html/ErrorLog ${APACHE_LOG_DIR}/pawelwin_error.logCustomLog ${APACHE_LOG_DIR}/pawelwin_access.log combinedSSLProxyEngine onProxyPreserveHost OnProxyPass / https://10.10.106/ProxyPassReverse / https://10.13.10.106/RewriteEngine onRewriteCond %{SERVER_NAME} =pawel.win [OR]RewriteCond %{SERVER_NAME} =www.pawel.winRewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]</VirtualHost><VirtualHost *:443>SSLEngine onSSLProxyEngine onSSLProxyVerify noneSSLProxyCheckPeerCN offSSLProxyCheckPeerName offSSLProxyCheckPeerExpire offServerAdmin [email protected]ServerName pawel.winServerAlias www.pawel.winProxyPreserveHost OnProxyPass / https://10.13.10.106/ProxyPassReverse / https://10.13.10.106/# DocumentRoot /var/www/html/ErrorLog ${APACHE_LOG_DIR}/pawelwin_error.logCustomLog ${APACHE_LOG_DIR}/pawelwin_access.log combined</VirtualHost>