Nevermind I figured it out.

Just needed to add this in the <Host> in conf/server.xml:

<Context path="" docBase="" debug="1"/>

Doesn't make a lot of sense but it did the trick.

John



> Hello Im running tomcat5 with mod_jk2, apache 2 and RH FC01
>
> Im having trouble getting servlets to work under mod_jk2 and shared
> instance for virtual hosting.
> It works fine with preview link context for the site:
> http://ip:8080/domain.com/serlvet/helloworld  but with
> domain.com/servlet/helloworld does not
> work.
>
> I uploaded the root contents for servlets-examples to the root of the site
> (html folder which is also doc base). The WEB-INF in the dir is from the
> servlets-examples. So when you go to domain.com the index.html from the
> examples loads. But links to serlvet/servletname doesnt work.
>
> Settings:
>
> Tomcats entry for virtual host in server.xml:
>         <Host name="domain1.com" debug="0"
>                 appBase="/home/username/domain1.com/html"
>                         unpackWARs="true" autoDeploy="true">
>
>                 <Alias>www.domain1.com</Alias>
>
>                 <Valve
> className="org.apache.catalina.valves.AccessLogValve"
>                  directory="/home/username/domain1.com/logs"
> prefix="tomcat5_log." suffix=".txt"
>                  pattern="common" resolveHosts="false"/>
>         </Host>
>
> Workers2.properties entry (JSPs work and html is routed to apache)
>
> # DOMAIN1.COM
> [uri:domain1.com:80/*.jsp]
> group=TC5
>
> [uri:www.domain1.com:80/*.jsp]
> group=TC5
>
> [uri:domain1.com:80/servlet/*]
> group=TC5
>
> [uri:www.domain1.com:80/servlet/*]
> group=TC5
>
>
> The http.conf file has document root as /home/username/domain1.com/html
> and the locations for WEB-INF are included for security.
>
> Any Ideas what I might be missing??  (remember it works when accessing via
> port.)
>
> Thanks!
>
> John
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to