Apache - how to map prefixes to different directories
Is it possible to configure Apache to allow different prefixes (instead of www) to map to different directories in the file system? For example... I have two different environments on my webserver: /home/me/test/web : Test Environment /home/production/web : Production Environment I would like these to map to these urls: test.mysite.com -> /home/me/test/web prod.mysite.com -> /home/production/web However, nothing I've tried with VirtualHosts has worked: NameVirtualHost *:80 <VirtualHost *:80> ServerName test.mysite.com ** Some SetEnvs ** </VirtualHost> <VirtualHost *:80> ServerName prod.mysite