Skip to content

Instantly share code, notes, and snippets.

@chrismendis
Created March 8, 2011 16:13
Show Gist options
  • Save chrismendis/860464 to your computer and use it in GitHub Desktop.
Save chrismendis/860464 to your computer and use it in GitHub Desktop.
Example of Virtual Host setup for Apache
127.0.0.1 localhost
127.0.0.1 local.ltsb.mighty.ca
127.0.0.1 local.ltsb.fr.mighty.ca
NameVirtualHost *
<VirtualHost *:80>
ServerName local.ltsb.mighty.ca
DocumentRoot "/Users/cmendis/Development/ltsb/public"
<Directory>
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName local.ltsb.fr.mighty.ca
DocumentRoot "/Users/cmendis/Development/ltsb/public"
<Directory>
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment