Created
October 2, 2012 12:39
-
-
Save aranw/3818727 to your computer and use it in GitHub Desktop.
daneden.local vhost
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
// This snippet below needs to be added to your apache config. | |
// Or add a extra vhosts.conf file and include it into your httpd.conf file with line... | |
Include /private/etc/apache2/other/vhosts.conf | |
// vhosts.conf | |
<VirtualHost *:80> | |
DocumentRoot "/Library/Webserver/Documents/daneden.me/" | |
ServerName daneden | |
ServerAlias daneden.local | |
ErrorLog "/Library/Webserver/logs/daneden/error_log" | |
CustomLog "/Library/Webserver/logs/daneden/access_log" common | |
<Directory "/Library/Webserver/Documents/daneden.me/"> | |
Options Indexes Multiviews FollowSymLinks | |
AllowOverride FileInfo | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> | |
// Once you've added this restart Apache, then add the following to /etc/hosts | |
127.0.0.1 daneden | |
127.0.0.1 daneden.local | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment