Created
June 10, 2016 21:55
-
-
Save jrobinsonc/a0cdcb793432645c525aaa53295e7140 to your computer and use it in GitHub Desktop.
Virtual host for localhost
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
<VirtualHost *:80> | |
DocumentRoot "D:/webdev" | |
ServerName localhost | |
ServerAlias 127.0.0.1 | |
<Directory "D:/webdev"> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride all | |
Require local | |
</Directory> | |
</VirtualHost> | |
<VirtualHost *:80> | |
UseCanonicalName Off | |
ServerName vhosts.fqdn | |
ServerAlias *.local | |
VirtualDocumentRoot "D:/webdev/projects/%-2+/site" | |
<Directory "D:/webdev/projects"> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride all | |
Require local | |
</Directory> | |
</VirtualHost> |
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
function FindProxyForURL (url, host) { | |
if (dnsDomainIs(host, '.local')) { | |
return 'PROXY 127.0.0.1'; | |
} | |
return 'DIRECT'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment