Alias /site-1/ /var/www_pub/site-1/
Alias /site-2/ /var/www_pub/site-2/
Alias /site-3/ /var/www_pub/site-3/
...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?
You can setup name-based virtual servers to use one IP address. Then all you have to do is have a DNS entry for each domain pointing to the one IP address. Or if this is just something you are testing at home, you can put these entries in your HOSTS file. Apache looks at the domain name and matches it to one of the name-based virtual servers for that IP address. If no match is found it uses the first one.
The Apache settings (httpd.conf) would be similar to this: