Re: dynamic/mass virtual hosts with www.* alias and localhost...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2009-05-07 at 10:19 -0400, Eric Covener wrote:
> On Thu, May 7, 2009 at 10:08 AM, wayne <wayne@xxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux