Skip to content

Instantly share code, notes, and snippets.

@erikfloresq
Created July 13, 2015 17:10
Show Gist options
  • Save erikfloresq/385b543fcefbfeb3c762 to your computer and use it in GitHub Desktop.
Save erikfloresq/385b543fcefbfeb3c762 to your computer and use it in GitHub Desktop.
vhost yosemite
#
# 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 "/usr/docs/dummy-host.example.com"
ServerName dummy-host.example.com
ServerAlias www.dummy-host.example.com
ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/erikflores/projects/"
ServerName localhost
ServerAlias localhost
ErrorLog "/private/var/log/apache2/localhost-error_log"
CustomLog "/private/var/log/apache2/localhost-access_log" common
<Directory /Users/erikflores/projects/>
Options Indexes FollowSymLinks
AllowOverride All
Allow from all
Order allow,deny
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/erikflores/projects/shopin/public"
ServerName local.shopin.v1.dev
ServerAlias local.shopin.v1.dev
ErrorLog "/private/var/log/apache2/shopin-error_log"
CustomLog "/private/var/log/apache2/shopin-access_log" common
<Directory /Users/erikflores/projects/shopin/public>
Options Indexes FollowSymLinks
AllowOverride All
Allow from all
Order allow,deny
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/erikflores/projects/clicksandbricks/"
ServerName local.clicksandbricks.pe
ServerAlias local.clicksandbricks.pe
ErrorLog "/private/var/log/apache2/clicksandbricks-error_log"
CustomLog "/private/var/log/apache2/clicksandbricks-access_log" common
<Directory /Users/erikflores/projects/clicksandbricks>
Options Indexes FollowSymLinks
AllowOverride All
Allow from all
Order allow,deny
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/Users/erikflores/projects/aep/"
ServerName aep.local
ServerAlias aep.local
ErrorLog "/private/var/log/apache2/aep-error_log"
CustomLog "/private/var/log/apache2/aep-access_log" common
<Directory /Users/erikflores/projects/aep>
Options Indexes FollowSymLinks
AllowOverride All
Allow from all
Order allow,deny
Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment