Skip to content

Instantly share code, notes, and snippets.

@favrik
Created May 10, 2011 20:17
Show Gist options
  • Save favrik/965290 to your computer and use it in GitHub Desktop.
Save favrik/965290 to your computer and use it in GitHub Desktop.
vhost for localhost
<VirtualHost *:80>
DocumentRoot "/Library/WebServer/Documents"
<Directory />
Options All
AllowOverride All
Order deny,allow
Deny from All
Allow from 127.0.0.1
</Directory>
<Directory "/Library/WebServer/Documents">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks MultiViews
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
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