httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott Wilcox <sc...@x0f.org>
Subject Re: [users@httpd] Global Vhost/Redirect
Date Fri, 18 May 2007 18:50:05 GMT
Hey Joshua,

I think I was a little ambiguous with what I said. It probably would of
been better to explain it like this.

If a VirtualHost is there for the requested URI, that is served.
For any requested URI (http://test1.com, http://sub.domain.com,
http://anything.anythingelse.anywhere.tld), then that request is
actually forwarded to the main site.

At the moment, my first VirtualHost is catching everything and
displaying the standard homepage fine, but i'd much prefer if they were
pushed over to the correct URI.

Scott.


Joshua Slive wrote:
> On 5/18/07, Scott Wilcox <sc0tt@x0f.org> wrote:
>>
>>  Is there a method to say:
>>
>>  Requested URI:
>>  http://domain.com              Does nothing
>>  http://sub.domain.com       Redirects to http://domain.com
>>
>>
>>  It seems to me, if I used the Redirect Perm, it'd just loop around
>> itself,
>> no?
>
> http://wiki.apache.org/httpd/Recipes/CanonicalHostNames
>
> The sub.domain.com virtual host goes first and catches all non-matched
> names. The domain.com vhost goes last and does not contain a Redirect.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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