Apache 2.2 mod_vhost-alias with multiple document roots

view full story

http://serverfault.com – I’m a beginner in working with apache and in need of your help. My task is to build a dynamic webserver (Debian 6.0.4, Apache 2.2, one public IP) which can host multiple websites and files (like pictures, pdf etc.) for preview purposes. Now my problem is that I need two different document roots. One for the websites and the other one for the files. My attempt is to use mod_vhost_alias, so I don’t need a new entry in the httpd.conf for every virtual host. My httpd.conf looks like this: UseCanonicalName Off NameVirtualHost <VirtualHost preview.example.com> Serv (HowTos)