2022-12-05 02:07:41 +03:00
|
|
|
<IfModule mod_ssl.c>
|
2022-12-06 17:33:12 +03:00
|
|
|
<VirtualHost 91.99.99.99:443>
|
2022-12-05 02:07:41 +03:00
|
|
|
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>
|