httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wayne <wa...@jawnee.org>
Subject Re: [users@httpd] dynamic/mass virtual hosts with www.* alias and localhost...
Date Thu, 07 May 2009 14:25:41 GMT
On Thu, 2009-05-07 at 10:19 -0400, Eric Covener wrote:
> On Thu, May 7, 2009 at 10:08 AM, wayne <wayne@jawnee.org> wrote:
> > ahoy,
> >
> >     this is the first problem: unless i create a link with
> 
> > "www.example1.org" to the "example1.org" directory of sites, apache will
> > only server requests to example1.org, not www.example1.org .  thus, i am
> > trying to setup some directive to avoid having to make 2 entries (both the
> > domain.org directory AND a www.domain.org link to the directory) to have
> > apache serve both domains.
> 
> Can you use mod_rewrite to force a canonocal flavor of each domain
> with always www or no-www?
> 
    i assume i could do that, though mod_vhost_alias seems to be the
favored method over mod_rewrite for doing this.  also, using a directory
interpolation of /var/www/sites/%-2.0.%-1 works perfectly, as suggested
by Rainer.

thanks nonetheless.



---------------------------------------------------------------------
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