Created
January 22, 2021 10:24
-
-
Save tchauviere/c9b2171dffcbb638323110b7484cb4b6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost SERVER_IP:443> | |
ServerName SERVER_DOMAIN | |
DocumentRoot SERVER_ROOT_PATH | |
ProxyPass /.well-known/acme-challenge/ ! | |
ProxyPassReverse /.well-known/acme-challenge/ ! | |
RedirectMatch ^/(?!.well-known)(.*)$ SERVER_DOMAIN/$1 | |
ProxyPass / https://NODEHOST:NODEHOSTPORT/ | |
ProxyPassReverse / https://NODEHOST:NODEHOSTPORT/ | |
<Proxy *> | |
allow from all | |
</Proxy> | |
SSLEngine on | |
SSLCertificateFile SSL_CERT_FILE_PATH | |
SSLCertificateKeyFile SSL_KEY_FILE_PATH | |
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 | |
SSLCACertificateFile SSL_CA_FILE_PATH | |
SSLProxyEngine On | |
ProxyPreserveHost On | |
ProxyRequests On | |
</VirtualHost> | |
<VirtualHost SERVER_IP:80> | |
ServerName SERVER_DOMAIN | |
Redirect permanent / SERVER_DOMAIN | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment