Last active
July 24, 2020 01:26
-
-
Save philipborbon/de2dee78fb496fa7fb632c682c1885cb to your computer and use it in GitHub Desktop.
Sample Apache Virtual Host Configuration
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
<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