Created
July 7, 2016 14:53
-
-
Save portableant/7f2649eab149f0448af433ba6b1676cc to your computer and use it in GitHub Desktop.
Discourse apache2.4 setup
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 _default_:443> | |
ServerAdmin info@finds.org.uk | |
ServerName forum.finds.org.uk | |
ProxyPreserveHost On | |
ProxyRequests Off | |
ProxyPass / http://localhost:3000/ | |
ProxyPassReverse / http://localhost:3000/ | |
Header always set Strict-Transport-Security "max-age=31536000" | |
ErrorLog ${APACHE_LOG_DIR}/ssl_forum_finds_error.log | |
# Possible values include: debug, info, notice, warn, error, crit, | |
# alert, emerg. | |
LogLevel warn | |
CustomLog ${APACHE_LOG_DIR}/ssl_forum_finds_access.log combined | |
# SSL Engine Switch: | |
# Enable/Disable SSL for this virtual host. | |
SSLEngine on | |
# A self-signed (snakeoil) certificate can be created by installing | |
# the ssl-cert package. See | |
# /usr/share/doc/apache2.2-common/README.Debian.gz for more info. | |
# If both key and certificate are stored in the same file, only the | |
# SSLCertificateFile directive is needed. | |
SSLCertificateFile /etc/apache2/ssl/public.crt | |
SSLCertificateKeyFile /etc/apache2/ssl/private.key | |
</VirtualHost> | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment