Hello gentlemen,

we are currently trying to deploy a Turbine application with tomcat and Apache server.
Apache has a virtual host configured and uses the proxy module to connect to tomcat.

here the virtual host entry:

<VirtualHost www.mydomain.com <http://www.mydomain.com>>
DocumentRoot /home/httpd/html/www.mydomain.com
ProxyPass /strecke/servlet http://internal-host:8080/bugtrack/servlet <http://internal-host:8080/strecke/servlet>
ProxyPassReverse /strecke/servlet http://internal-host:8080/bugtrack/servlet <http://internal-host:8080/strecke/servlet>

The problem we have is that the images are not displayed and i do not understand why!!!

I hope somebody can help me!

greetings

Fabio Daprile

here a line of the VM template:

<tr><td bgcolor="#FFFFFF" width=1><img src="$content.getURI("images/spacer.gif")" width="1" height="1" border="0" alt=""></td>

and here the same line from the rendered HTML source:

<tr><td bgcolor="#FFFFFF" width=1><img src="http://www.wuerth-phoenix.it:80/bugtrack/images/spacer.gif"; width="1" height="1" border="0" alt=""></td>



hereafter some extracted lines from configuration files:

the server.xml of Tomcat:

<!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector className="org.apache.catalina.connector.http.HttpConnector"
port="8080" minProcessors="5" maxProcessors="75"
proxyName="www.wuerth-phoenix.it"
enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"
proxyPort="80"/>

<Context path=""
docBase="webapps/bugtrack"
crossContext="false"
debug="0"
reloadable="true"/>

hereafter the web.xml of my application:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>

<web-app>
<servlet>
<servlet-name>bugtrack</servlet-name>
<servlet-class>org.apache.turbine.Turbine</servlet-class>
<init-param>
<param-name>applicationRoot</param-name>
<param-value>webContext</param-value>
</init-param>
<init-param>
<param-name>properties</param-name>
<param-value>/WEB-INF/conf/TurbineResources.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>bugtrack</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>

<security-constraint>
<web-resource-collection>
<web-resource-name>templates</web-resource-name>
<url-pattern>/templates/*</url-pattern>
</web-resource-collection>
<web-resource-collection>
<web-resource-name>logs</web-resource-name>
<url-pattern>/logs/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>Templates</realm-name>
</login-config>
</web-app>

Reply via email to