Skip to content

Instantly share code, notes, and snippets.

@Aeon
Created February 12, 2013 22:31
Show Gist options
  • Save Aeon/4774083 to your computer and use it in GitHub Desktop.
Save Aeon/4774083 to your computer and use it in GitHub Desktop.
sample httpd-vhost.conf
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
NameVirtualHost *:81
<VirtualHost *:81>
# optional
# ServerName myproject.dev
DocumentRoot "/Users/me/Sites/myproject/"
ErrorLog "/Users/me/Sites/myproject/log/apache-error_log"
CustomLog "/Users/me/Sites/myproject/log/apache-access_log" common
<Directory "/Users/me/Sites/myproject/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment