Hi,

Thanks, but I'm not quite clear on how to direct Tomcat to call the ROOT
application for a given domain.  I added the bottom <Host> element to
server.xml, but it doesn't appear to work correctly.

<Engine name="Catalina" defaultHost="localhost">
  <Host name="localhost"  appBase="webapps" unpackWARs="true"
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
  </Host>
  <Host name="blog.christopher.net.nz" appBase="webapps/ROOT" />
</Engine>

Previously, the URL http://blog.christopher.net.nz/christopher called up
webapps/christopher, when it should instead have been handled by Apache
Roller running with ROOT context.  Now that I have added the above
directive, Tomcat reports "The requested resource () is not available".

The URL http://blog.bread.co.nz/bread is handled by Roller, as intended,
because there is no competing application at webapps/bread.

Regards,

Chris.


> On 11/10/2010 08:53, Christopher Dodunski wrote:
>> Hello,
>>
>> I have a slight problem, and am having difficulty determining which part
>> of the Tomcat documentation applies in my case.
>>
>> Apache HTTP Server version (as proxy): 2.2.9 (Debian)
>> Tomcat version: 6.0.29
>>
>> **My Problem**
>> Apache Roller weblogger is running on Tomcat with ROOT context, and is
>> hosting several blog pages, each with a unique domain (Roller supports
>> this).  Here are two:
>>
>> http://blog.bread.co.nz
>> http://blog.christopher.net.nz
>>
>> By way of mod_proxy, requests to the above are forwarded on to Tomcat,
>> AJP
>> port 8009.  Moreover, mod_rewrite modifies the URLs thus:
>>
>> http://blog.bread.co.nz/bread/
>> http://blog.christopher.net.nz/christopher/
>>
>> Roller uses the last part of the URL to determine which particular blog
>> to
>> serve up.  In the first example, "bread".  However, the second isn't
>> working as intended.
>>
>> Because I also happen to have an unrelated web application running at
>> webapps/christopher (bearing in mind that Roller is found at
>> webapps/ROOT), requests to the second URL above are being forwarded on
>> to
>> webapps/christopher.  So the response comes from a Servlet found here,
>> and
>> not from Roller.
>>
>> I imagine adding a directive to server.xml will have the situation
>> sorted.
>>  Obviously, webapps/christopher should respond to requests made to
>> http://my_main_domain:8080/christopher.  But webapps/ROOT should respond
>> to requests made to http://blog.christopher.net.nz/christopher.
>>
>> I'd appreciate some help in getting this sorted.  In the meanwhile, I've
>> had to switch webapps/christopher off.
>
> Deploy this app on it's own domain, leave the rest on the default domain.
>
>  http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
>
>
> p


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to