Skip to content

Instantly share code, notes, and snippets.

@JBlond

JBlond/example.conf Secret

Last active Jan 7, 2021
Embed
What would you like to do?
Apache example
<VirtualHost *:80>
ServerName example.com
DirectoryIndex index.html
CustomLog "C:\nul" common
DocumentRoot "C:/htdocs"
<Directory "C:/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:443>
ServerName example.com
DirectoryIndex index.html
CustomLog "C:\nul" common
DocumentRoot "C:/htdocs/example"
<Directory "C:/htdocs/example">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
SSLEngine on
SSLCertificateFile conf/certs/fullchain.pem
SSLCertificateKeyFile conf/certs/privkey.pem
<Files ~"\.(cgi|shtml|phtml|php|htm|html?)$>
SSLOptions +StdEnvVars
</Files>
</VirtualHost>
<VirtualHost *:443>
ServerName example2.com
DirectoryIndex index.html
CustomLog "C:\nul" common
DocumentRoot "C:/htdocs/example2"
<Directory "C:/htdocs/example2">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
SSLEngine on
SSLCertificateFile conf/certs/fullchain2.pem
SSLCertificateKeyFile conf/certs/privkey2.pem
<Files ~"\.(cgi|shtml|phtml|php|htm|html?)$>
SSLOptions +StdEnvVars
</Files>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment