Last active
January 7, 2019 18:20
-
-
Save sethwhitaker/22f3dde754eaab1ee4f0486d67dc491c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# 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 | |
# This is a Dynamic vhosts config. | |
# With this config, you wont need to add new entries for each project. | |
# Just add entry to hosts file | |
# Just replace all 'username' text with your actual machine username | |
# Reset for defualt localhost | |
<VirtualHost *:80> | |
DocumentRoot "/Users/seth/Sites" | |
ServerName localhost | |
</VirtualHost> | |
# Project root is the same as web root. | |
# Ex: /Users/<username>/Sites/bar | |
# Hosts Entry: 127.0.0.1 bar.local | |
<VirtualHost *:80> | |
UseCanonicalName Off | |
ServerAlias *.local | |
VirtualDocumentRoot "/Users/<username>/Sites/%1" | |
<Directory "/Users/<username>/Sites/*"> | |
SetEnv ENV dev | |
Options Indexes FollowSymLinks | |
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