Created
February 15, 2017 08:21
-
-
Save gyengus/2347b07375b1caa3d77b340350dafea6 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
<ifmodule mod_ssl.c> | |
<virtualhost *:443> | |
ServerName gyengus.hu | |
ServerAlias www.gyengus.hu | |
RequestHeader set X-Forwarded-Proto "https" | |
ProxyPreserveHost on | |
ProxyPass / http://localhost:8888/ | |
ProxyPassReverse / http://localhost:8888/ | |
RewriteEngine On | |
RewriteMap access txt:/mnt/data/www/blacklist.txt | |
ErrorLog ${APACHE_LOG_DIR}/gyengus.hu/error.log | |
LogLevel warn | |
CustomLog ${APACHE_LOG_DIR}/gyengus.hu/access.log combined | |
SSLCertificateFile /etc/letsencrypt/live/gyengus.hu/fullchain.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/gyengus.hu/privkey.pem | |
Include /etc/letsencrypt/options-ssl-apache.conf | |
</virtualhost> | |
</ifmodule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment