Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sascha example apache config /etc/apache2/users/<shortuser>
<Directory "/Users/<shortuser>/Sites/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
DocumentRoot "/Users/<shortuser>/Sites/"
NameVirtualHost *:80
<VirtualHost *:80>
UseCanonicalName Off
ServerName <HOSTNAME>
ServerAlias <HOSTNAME> *.dev
VirtualDocumentRoot /Users/<shortuser>/Sites/%-2/www
</VirtualHost>
<VirtualHost *:80>
UseCanonicalName Off
ServerName <HOSTNAME>.tozen
ServerAlias *.<HOSTNAME>.tozen
VirtualDocumentRoot /Users/<shortuser>/Sites/%-3/www
</VirtualHost>
NameVirtualHost *:443
<VirtualHost *:443>
UseCanonicalName Off
ServerName *.dev
VirtualDocumentRoot /Users/<shortuser>/Sites/%-2/www
SSLEngine on
SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM:+SSLv3
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
ErrorLog /var/log/apache2/ssl_error_log
LogLevel warn
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.