|
Home > Archive > Apache Server configuration support > July 2006 > Multiple sets of dynamic virtual hosts
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Multiple sets of dynamic virtual hosts
|
|
| weberjacob@gmail.com 2006-07-25, 7:25 pm |
| 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
| |
| Davide Bianchi 2006-07-25, 7:25 pm |
| On 2006-07-25, weberjacob@gmail.com <weberjacob@gmail.com> wrote:
> 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.
Can't you use a mix of dynamic DocRoot and .htaccess to do the job?
(note: I've never used htaccess to change php values)
Davide
--
Why was I with her? She reminds me of you. In fact, she reminds me
more of you than you do!
-- Julius Henry "Groucho" Marx (http://en.wikiquote.org/wiki/Groucho_Marx)
|
|
|
|
|