Hi,
that worked perfectly. Thanks very much!
Pid Ster wrote:
>
> On 11/10/2009 11:56, tomcatnip wrote:
>>
>> Hi.
>>
>> I have a fairly popular website which runs on a Apache Tomcat 5.5. I just
>> upgraded to 6.0.20 and copied the Virtual Host configuration from my
>> older
>> server (i.e. Tomcat 5.5) to the new one.
>>
>> I cannot access my site with the VirtualHost's domain name. I get a 404
>> not
>> found.
>>
>> I have two Virtual Hosts (i.e.) , one called www.mydomain.net
>> (with WWW) and mydomain.net (without WWW). The latter (mydomain.net)
>> simply
>> points to a directory which contains an index.jsp page with a 301
>> redirect
>> to the www.mydomain.net domain. This is for SEO purposes.
>>
>> I get a 404 not found when I try to access my site this way (using a
>> browser):
>>
>> 1. mydomain.net
>> 2. www.mydomain.net
>> 3. www.mydomain.net/
>> 4.
>>
>> Points 1 and 4 in the list above are simply 301 redirects to
>> www.mydomain.net, so a 404 is not surprising. It seems the www makes it
>> not
>> work.
>>
>> I can access it by going to:
>>
>> 1. mydomain.net/
>> 2./
>>
>> I can also access another dummy wepage with:
>>
>> www.mydomain.net/ (with the www)
>>
>> I know this seems inconsistent. But that is the reason for this post.
>>
>> Note this works perfectly in Tomcat 5.5.
>>
>> Here is the configuration:
>>
>>
>>
>> > unpackWARs="true" autoDeploy="true"
>> xmlValidation="false" xmlNamespaceAware="false">
>>
>>
>>
>> > unpackWARs="true" autoDeploy="true"
>> xmlValidation="false" xmlNamespaceAware="false">
>> >
>>
>
> Place your files in the ROOT directory.
>
> /path/to/website/appBase
> /path/to/website/appBase/ROOT
>
> /path/to/redirect/appBase
> /path/to/redirect/appBase/ROOT
>
>
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>
>
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>
>
> You don't need the Context definition if that is all you had configured
> on it.
>
> p
>
>
>
>
>
>> I would be grateful for any help on this topic.
>>
>> Thanks.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
>
--
View this message in context:
http://www.nabble.com/VirtualHost-configuration-working-in-Tomcat-5.5-does-not-work-in-Tomcat-6.0.20-tp25842386p25843293.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org