Skip to content

Instantly share code, notes, and snippets.

@philipborbon
Last active July 24, 2020 01:26
Show Gist options
  • Save philipborbon/de2dee78fb496fa7fb632c682c1885cb to your computer and use it in GitHub Desktop.
Save philipborbon/de2dee78fb496fa7fb632c682c1885cb to your computer and use it in GitHub Desktop.
Sample Apache Virtual Host Configuration
<VirtualHost *:443>
DocumentRoot "path/to/public/directory"
ServerName domain.example.com
SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
<Directory "path/to/public/directory">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "path/to/public/directory"
ServerName domain.example.com
<Directory "path/to/public/directory">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment