From Boldcore's wiki
Jump to: navigation, search
(Created page with "= Working VirtualHost config for reverse proxy = <pre> <VirtualHost address.tld:443> ServerName address.tld ServerAlias address.tld ProxyPass / https://reverse.proxy.addr...")
 
Line 1: Line 1:
 
= Working VirtualHost config for reverse proxy =
 
= Working VirtualHost config for reverse proxy =
 +
 +
...working on my servers.
  
 
<pre>
 
<pre>
Line 22: Line 24:
 
   
 
   
 
</VirtualHost>
 
</VirtualHost>
 
 
 
 
 
</pre>
 
</pre>

Revision as of 04:24, 17 February 2017

Working VirtualHost config for reverse proxy

...working on my servers.

<VirtualHost address.tld:443>
 ServerName address.tld
 ServerAlias address.tld
 ProxyPass  / https://reverse.proxy.address/
 ProxyPassReverse / https://reverse.proxy.address/

 ProxyRequests Off
 ProxyPreserveHost On
 SSLProxyCheckPeerCN off
 SSLProxyCheckPeerName off
 SSLProxyCheckPeerExpire off
 
 ## For letsencrypt
 Include /etc/letsencrypt/options-ssl-apache.conf ## For letsencrypt
 SSLCertificateFile /etc/letsencrypt/live/address.tld/cert.pem
 SSLCertificateKeyFile /etc/letsencrypt/live/address.tld/privkey.pem
 SSLCertificateChainFile /etc/letsencrypt/live/address.tld/chain.pem
 SSLProxyEngine On
 
</VirtualHost>