Skip to content

Instantly share code, notes, and snippets.

@gyengus
Created February 15, 2017 08:21
Show Gist options
  • Save gyengus/2347b07375b1caa3d77b340350dafea6 to your computer and use it in GitHub Desktop.
Save gyengus/2347b07375b1caa3d77b340350dafea6 to your computer and use it in GitHub Desktop.
<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