-
-
Save shuairan/5590683 to your computer and use it in GitHub Desktop.
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