Skip to content

Instantly share code, notes, and snippets.

@ajbrown
Created April 5, 2011 17:26
Show Gist options
  • Save ajbrown/904055 to your computer and use it in GitHub Desktop.
Save ajbrown/904055 to your computer and use it in GitHub Desktop.
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.
#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/ajbrown/Projects/Application/public"
ServerName dev.flymuch.localhost
ServerAlias localhost
ErrorLog "logs/localhost.com-error_log"
CustomLog "logs/localhost-access_log" common
SetEnv APPLICATION_ENV development
<Directory "/Users/ajbrown/Projects/Application/public">
Options Indexes FollowSymLinks
#
# 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 All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
Alias /ZendServer "/usr/local/zend/gui/UserServer"
<Directory "/usr/local/zend/gui/UserServer">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order deny,allow
deny from all
allow from 127.0.0.1/8
allow from ::1
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment