Hello,
what I want to do is to influence which virtual host handles a request. The only possibility is to adjust the HTTP_HOST variable realy early.
Can this be done using mod_rewrite or are there other possibilities (with or without mod_rewrite).
My goal is, that certain subdomains get handled by one virtualhost, even if this host does not normaly handle the domain. so for example webmail and phpmyadmin are handled by one virtualhost for all domains on the server.
phpmyadmin.domain1.com -> phpmyadmin.common.com
phpmyadmin.domain2.com -> phpmyadmin.common.com
a redirect using the htpp:// target and [R,L] works fine if inside !every! virtualhost, but is ignored if it is in the global config. And of course the URL visible in the browser is changed, which is somewhat not nice.
PS: It comes to my mind, that i perhaps can generate a virtualhost with
ServerName phpmyadmin.*
I'll check that. But I'm still interested in other possibilities, especially manipulating HTTP_HOST.
Thanks in advance