Created
December 22, 2015 22:52
-
-
Save eduardoromero/2b0c2aedae843402a91c to your computer and use it in GitHub Desktop.
Hosts multpile wildcard vhosts, makes [somename].dev/webroot -> http://somename.dev
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
| <Directory "/"> | |
| Options Indexes MultiViews FollowSymLinks | |
| AllowOverride All | |
| Require all granted | |
| </Directory> | |
| <Virtualhost *:80> | |
| VirtualDocumentRoot "/Users/eromero/Workspace" | |
| ServerName home.dev | |
| UseCanonicalName Off | |
| </Virtualhost> | |
| <Virtualhost *:80> | |
| VirtualDocumentRoot "/Users/eromero/Workspace/%1/webroot" | |
| ServerName sites.dev | |
| ServerAlias *.dev | |
| UseCanonicalName Off | |
| <Directory "/Users/eromero/Workspace/%1/webroot"> | |
| Options Indexes MultiViews FollowSymLinks | |
| AllowOverride All | |
| Require all granted | |
| </Directory> | |
| </Virtualhost> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Publishes
/folder/hostname.dev/webrootvisible inhttp://hostname.devAdd hostname.dev in /etc/hosts accordingly.