Have a Question?
< All Topics
Print

Apache .conf file forward to another host.

Apache .conf file forward to another host.

<VirtualHost *:80>
ServerAdmin [email protected]
ServerName pawel.win
ServerAlias www.pawel.win
# DocumentRoot /var/www/html/
ErrorLog ${APACHE_LOG_DIR}/pawelwin_error.log
CustomLog ${APACHE_LOG_DIR}/pawelwin_access.log combined
SSLProxyEngine on
ProxyPreserveHost On
ProxyPass / https://10.10.106/
ProxyPassReverse / https://10.13.10.106/
RewriteEngine on
RewriteCond %{SERVER_NAME} =pawel.win [OR]
RewriteCond %{SERVER_NAME} =www.pawel.win
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
SSLProxyEngine on
SSLProxyVerify none
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
ServerAdmin [email protected]
ServerName pawel.win
ServerAlias www.pawel.win
ProxyPreserveHost On
ProxyPass / https://10.13.10.106/
ProxyPassReverse / https://10.13.10.106/
# DocumentRoot /var/www/html/
ErrorLog ${APACHE_LOG_DIR}/pawelwin_error.log
CustomLog ${APACHE_LOG_DIR}/pawelwin_access.log combined

</VirtualHost>

Table of Contents