Skip to content

Instantly share code, notes, and snippets.

@mgao6767
Last active October 12, 2018 01:04
Show Gist options
  • Save mgao6767/7baf9054ee4313dd9136bca29c2e6c34 to your computer and use it in GitHub Desktop.
Save mgao6767/7baf9054ee4313dd9136bca29c2e6c34 to your computer and use it in GitHub Desktop.
bitnami.conf for alice.com
<VirtualHost *:80>
ServerName alice.com
DocumentRoot "/opt/bitnami/apache2/htdocs"
<Directory "/opt/bitnami/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3 >
Require all granted
</IfVersion>
</Directory>
# Error Documents
ErrorDocument 503 /503.html
# Bitnami applications installed with a prefix URL (default)
Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf"
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
DocumentRoot "/opt/bitnami/apache2/htdocs"
ServerName alice.com
SSLCertificateFile "/path/to/alice.com/cert.pem"
SSLCertificateKeyFile "/path/to/alice.com/privkey.pem"
SSLCertificateChainFile "/path/to/alice.com/chain.pem"
<Directory "/opt/bitnami/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3 >
Require all granted
</IfVersion>
</Directory>
# Error Documents
ErrorDocument 503 /503.html
# Bitnami applications installed with a prefix URL (default)
Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment