[MOBY-dev] Re: [moby] Re: [MOBY-l] RDF file problem

Gary Schiltz gss at ncgr.org
Tue May 31 18:44:39 UTC 2005


Thanks José María for the information on Apache configuration. That 
approach would work if you want Tomcat to handle everything under a 
given path, including HTML, images, etc. However, if you want Apache to 
handle all HTTP requests, including Perl CGI requests, sessions, etc. 
and only use Tomcat to handle Servlets and JSP, then I believe you still 
need to use mod_jk, mod_jk2, or a similar adapter. For example, if you 
have /foo/bigdoc.html, /foo/hugeimage.jpg, and /foo/index.jsp, you would 
probably want Apache to deliver bigdoc.html and hugeimage.jpg, but would 
want Apache to delegate execution of index.jsp to Tomcat. Again, I 
couldn't get this to work under Red Hat 9, so I used Resin, which works 
very well with Apache.

// Gary

José María Fernández wrote:
> I have been talking to our webmasters about our Apache configuration,
> and they showed me the way to configure Apache to map Tomcat services.
> It is like this one:
> 
> ProxyPass /thePath http://other.machine/otherPath
> ProxyPassReverse /thePath http://other.machine/otherPath
> 
> As you can see, you have to write *twice* the equivalence, but with
> different commands. The first one (ProxyPass) tells Apache that all
> queries to /thePath and its subpaths should be rewritten as
> http://other.machine/otherPath (and its subpaths). The second command
> (ProxyPassReverse) tells Apache that it must work as a reverse proxy for
> that path, instead of redirecting the queries with a HTTP 305 code.
> 
> It is obvius ProxyPass/ProxyPassReverse works because current
> application servers handle HTTP requests. Tomcat 4 and above *must* do
> that because they follow the 2.3 servlet specification, which tells that
> the application server must handle and understand HTTP requests.
> 
> 	Best Regards,
> 		José María



More information about the MOBY-dev mailing list