Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

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

Thomas Carrié

2012-01-26

Replies: Find Java Web Hosting

Author LoginPost Reply
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@(protected)
 "  from the digest: users-digest-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.