tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Stramenga" <l.strame...@openservers.it>
Subject tomcat mod_proxy_ajp and root path
Date Wed, 25 Jun 2008 17:51:19 GMT
Hi,
We setup an Apache Tomcat servlet and JSP engine using mod_proxy ajp as
connector to host a JAVA application.

Here is the httpd.conf entry:

ProxyRequests Off
> ProxyVia Off
> ProxyPreserveHost On
> ProxyPass /servlet/ ajp://www.domain.com:8009/
> ProxyPassReverseCookiePath / /servlet
> ProxyPassReverse /servlet ajp://www.domain.com:8009/


 This is the server.xml entry:

Host name="domain.com" debug="0" appBase="/var/www/virtual/
> domain.com/htdocs/servlet" unpackWARs="false" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>  <Logger className="org.apache.catalina.logger.FileLogger"
> directory="/usr/share/tomcat-5.5.26/logs" prefix="domain.com"
> suffix=".log" timestamp="true" />
>  <Alias>www.domain.com</Alias>
> </Host>



We have an URL issue when the application redirect to the root path. Here it
is what happens f.e.:
The application shows a login page at the address
http://www.domain.com/servlet/fp2008/ . When we try to logging in and click
submit, the server redirect us to http://www.domain.com/fp2008/ with 404
ERROR. (correct URL should be http://www.domain.com/*servlet*/fp2008/ )
This happens for every dynamic link created by the application when a user
perform an action.

Any suggestion will be appreciate. Many thanks.
Luca Stramenga
OpenServers.it #1 GameProvider

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message