Created
May 16, 2013 09:58
-
-
Save webcultist/5590673 to your computer and use it in GitHub Desktop.
Sascha example apache config
/etc/apache2/users/<shortuser>
This file contains hidden or 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
<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