Hi!
I would like to redirect every foo.mydomain.com to
www.mydomain.com/sites/foo
My guess is that it could be done using the virtualserver directive in
httpd.conf
But i was unable to find any reference to such an example.
Anyone knows how to do that?!
Thanks!
Tal.
Try mod_virtual_host
VirtualDocumentRoot /www/host/sites/%1
yonah
Tal Achituv wrote:
Hi!
I would like to redirect every foo.mydomain.com to
www.mydomain.com/sites/foo
My guess is that it could be done using the virtualserver directive in
httpd.conf
But i was unable to find any reference to such
You will also need to set your DNS up so that everything.mydomain.com
will be directed to your IP. This requires DNS wildcards, which are
recommended against unless you know exactly what you are doing.
Shachar
Yonah Russ wrote:
Try mod_virtual_host
VirtualDocumentRoot
Hello Tal, List
IMHO VirtualServers have nothing to do with what you are trying to do
check-out mod_rewrite :
http://httpd.apache.org/docs/misc/rewriteguide.html
and
http://httpd.apache.org/docs/mod/mod_rewrite.html
Regards,
Boris Ratner.
PS:
`The great thing about mod_rewrite is it gives you