Re: [users@httpd] redirect based on HTTP_HOST using mod_rewrite

2012-01-26 Thread Thomas Carrié
You are right I have updated my conf for NameVirtualHost instead of mod_rewrite, it does the job Thanks On Wednesday, January 25, 2012 11:41:49 PM Pete Houston wrote: > On Wed, Jan 25, 2012 at 10:58:02PM +0100, Thomas Carrié wrote: > > It is the first time I use module mod_rewrite i

Re: [users@httpd] redirect based on HTTP_HOST using mod_rewrite

2012-01-25 Thread Thomas Carrié
e!! > They need to add GAL support on Android (star to agree) > http://code.google.com/p/android/issues/detail?id=4602 > > > 2012/1/25 Thomas Carrié > > > Hi, > > > > I have 2 DNS entries > > - a.domain.com > > - b.domain.com > > > > Th

[users@httpd] redirect based on HTTP_HOST using mod_rewrite

2012-01-25 Thread Thomas Carrié
Hi, I have 2 DNS entries - a.domain.com - b.domain.com They target the same IP: 1.2.3.4 I want to setup apache - to accept requests on a.domain.com - to forbid requests on b.mydomain.com I have tried this config Listen 1.2.3.4:80 ServerName a.domain.com # page to be served for users t