Can you really configure Apache to permit different prefixes (rather than www) to map to various sites within the file system? For instance...
I've two different conditions on my small webserver:
/home/me/test/web : Test Environment /home/production/web : Production Environment
I'd like those to map to those web addresses:
test.mysite.com -> /home/me/test/web prod.mysite.com -> /home/production/web
However, nothing I have attempted with VirtualHosts has labored:
NameVirtualHost *:80 <VirtualHost *:80> ServerName test.mysite.com ** Some SetEnvs ** </VirtualHost> <VirtualHost *:80> ServerName prod.mysite.com ** Different SetEnvs ** </VirtualHost>
This throws the next error:
[warn] _default_ VirtualHost overlap on port 80, the first has precedence
Is type of configuration even possible with Apache, or shall we be held doing a problem? Also, some clarification - simple spinning having a virtualhosts file most likely will not fit either. It really works for straight directory stuff, however I can not use any SetEnv directives like I possibly could inside a VirtualHost section.
Ought to be