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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
>   "   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to