Skip to content

Instantly share code, notes, and snippets.

@aranw
Created October 2, 2012 12:39
Show Gist options
  • Save aranw/3818727 to your computer and use it in GitHub Desktop.
Save aranw/3818727 to your computer and use it in GitHub Desktop.
daneden.local vhost
// 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