<VirtualHost _default_:80>
  ServerName localhost
  DocumentRoot /Users/webgefrickel/Sites
</VirtualHost>

<VirtualHost *:80>
  ServerName dev
  ServerAlias *.dev.localhost
  VirtualDocumentRoot /Users/webgefrickel/Sites/%1/public
</VirtualHost>

<VirtualHost *:443>
  ServerName dev
  ServerAlias *.dev.localhost
  VirtualDocumentRoot /Users/webgefrickel/Sites/%1/public

  SSLEngine on
  SSLCertificateFile "/Users/webgefrickel/Sites/__dev/localhost+2.pem"
  SSLCertificateKeyFile "/Users/webgefrickel/Sites/__dev/localhost+2-key.pem"
  Protocols h2 http/1.1
  # no HSTS for localhost (ubiquiti/other localhost ports/certicicates
  # Header always set Strict-Transport-Security "max-age=15768000"

  # html boilerplate configs, gzip etc
  Include /usr/local/etc/httpd/extra/httpd-h5bp-server-configs.conf

  <FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
  </FilesMatch>

  <Directory "/usr/local/var/www/cgi-bin">
    SSLOptions +StdEnvVars
  </Directory>
</VirtualHost>

