Created
August 19, 2010 14:17
-
-
Save tuupola/537986 to your computer and use it in GitHub Desktop.
Automated dev.* subdomains for Apache.
This file contains 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
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
VirtualDocumentRoot "/Users/tuupola/Code/www/%0/htdocs" | |
ServerName dev.subdomains | |
ServerAlias dev.* | |
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon | |
ErrorLog "/Users/tuupola/Code/www/logs/vhosts-error_log" | |
CustomLog "/Users/tuupola/Code/www/logs/vhosts-access_log" vcommon | |
</VirtualHost> |
This file contains 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 (shExpMatch(host, "dev.*")) { | |
return "PROXY localhost"; | |
} | |
return "DIRECT"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment