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

Reply via email to