Hi. I have a bunch of virtual hosts like this:
site1.john.company.com
site2.john.company.com
site3.john.company.com
site1.paul.company.com
site2.paul.company.com
site3.paul.company.com
I would like to use dynamic virtual hosting so I can just define
something like:
site1.(.*).company.com
site2.(.*).company.com
site2.(.*).company.com
and have them map to different directories, depending on the second
part of the URL (for example, /export/home/$1/www/)
I've looked over Apache's documentation for dynamic virtual hosting,
but I couldn't figure out how to apply it to this situation. One
problem is, it only describes how to make the DocumentRoot dynamic. But
my sites all have different Alias, SetEnv, and php_value commands,
which I also need to modify depending on the URL.
Is this possible? Thanks,
Jacob
>> Stay informed about: Multiple sets of dynamic virtual hosts