Apache virtual server redirection

2004-02-10 Thread Tal Achituv
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.

Re: Apache virtual server redirection

2004-02-10 Thread Yonah Russ
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

Re: Apache virtual server redirection

2004-02-10 Thread Shachar Shemesh
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

Re: Apache virtual server redirection

2004-02-10 Thread Boris Ratner
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