httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas CarriƩ <tho...@free.fr>
Subject Re: [users@httpd] redirect based on HTTP_HOST using mod_rewrite
Date Thu, 26 Jan 2012 22:16:47 GMT
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 is totally new to me, 2
> > things
> > are unclear to me:
> Why are you using mod_rewrite at all? Just use a NameVirtualHost and set
> up 2 virtual hosts for your 2 domains to which you could then restrict
> access accordingly. mod_rewrite seems an unnecessary complication for
> this task and (assuming you are using shared modules) only increases
> the memory footprint for each server process.
> 
> Pete

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message