29 lines
878 B
Plaintext
29 lines
878 B
Plaintext
<IfModule mod_ssl.c>
|
|
<VirtualHost 91.99.99.99:443>
|
|
ServerName www.example.com
|
|
ServerAlias example.com
|
|
#SSLEngine on
|
|
#SSLProxyEngine on
|
|
#SSLProxyVerify none
|
|
#SSLProxyCheckPeerCN off
|
|
#SSLProxyCheckPeerName off
|
|
#SSLProxyCheckPeerExpire off
|
|
ServerAdmin admin@example2.com
|
|
ProxyRequests Off
|
|
ProxyPreserveHost On
|
|
AllowEncodedSlashes NoDecode
|
|
<Proxy *>
|
|
Order deny,allow
|
|
Allow from all
|
|
</Proxy>
|
|
ProxyPass / http://127.0.0.1:8080/ nocanon
|
|
ProxyPassReverse / https://127.0.0.1:8080/
|
|
#RequestHeader set X-Forwarded-Proto "https"
|
|
#RequestHeader set X-Forwarded-Port "443"
|
|
|
|
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
|
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
|
</VirtualHost>
|
|
</IfModule>
|