DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Multiple Sites On Apache Without Virtual Hosts

04.20.2006
| 1586 views |
  • submit to reddit
        Being forced to work on a Windows based Apache, but came up with this nice way to access a bunch of multiple sites on the same Apache through one IP (no vhosts were allowed) with a URL trick:

AliasMatch ^/_(.+?)/(.*)?$ "d:/sites/$1/$2"

<Directory "d:/sites/*">
	Options Indexes
	AllowOverride All
	Order allow,deny
	Allow from all
</Directory>