Skip to content

Instantly share code, notes, and snippets.

@jhnns
Last active October 10, 2020 13:26
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhnns/5192282 to your computer and use it in GitHub Desktop.
Save jhnns/5192282 to your computer and use it in GitHub Desktop.
Contents of httpd-vhosts.conf when running multiple virtual host with xampp. https:// only works after creating a certificate as described here: http://robsnotebook.com/xampp-ssl-encrypt-passwords
## It's important to use normal slashes for paths also on windows
<VirtualHost *:80>
DocumentRoot "C:/Users/jhnns/dev/xampp/htdocs"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "C:/Users/jhnns/dev/peerigon.dev"
ServerName peerigon.dev
<Directory "C:/Users/jhnns/dev/peerigon.dev">
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "C:/Users/jhnns/dev/peerigon.dev"
ServerName peerigon.dev:443
<Directory "C:/Users/jhnns/dev/peerigon.dev">
AllowOverride All
Require local
</Directory>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment