Apache related: One server, multiple DocumentRoots
Posted: Sun Nov 03, 2002 6:30 pm
I wonder if there is any way to configure Apache to have one server, for example:
And have sub-sites accessible with Aliases, for example:
...and then have a unique DocumentRoot path for each sub-site?
Why then?
Well, I have several PHP-projects on my box and don't want to set up a virtual server for each PHP-project that is relying on a unique configured DocumentRoot.
Anyone?
Or is there a better way to line up things that I didn't think of?
Code: Select all
ServerName home.localdomainCode: Select all
Alias /site-1/ /var/www_pub/site-1/
Alias /site-2/ /var/www_pub/site-2/
Alias /site-3/ /var/www_pub/site-3/Why then?
Well, I have several PHP-projects on my box and don't want to set up a virtual server for each PHP-project that is relying on a unique configured DocumentRoot.
Anyone?
Or is there a better way to line up things that I didn't think of?