I am using Apache as a front end proxy server with Tomcat 5.0.14 as my servlet container. The Struts application is an enquiry form accessed via a button on a page served by Apache. When a user clicks on the enquiry button, the Struts welcome page appears, minus the "Powered by Struts" gif - the path of which is now http://localhost:8081/images/etc. When the button is clicked to display the enquiry form, the URL, which should start http://www.mydomain.com, instead starts with http://localhost:8081. The result of course is that the server is not found.
My question is, why is this happening? Have I forgotten or miscoded something in the Struts application or is it a feature of mod_proxy? I am using port based virtual hosting as below, which works with my plain JSP application.
<VirtualHost _default_:80>
SSLEngine off
# Document root for static content
DocumentRoot /Library/WebServer/Documents/etc.
ServerName www.mydomain.com
ErrorLog /Library/Apache2/logs/error_log
Transferlog /Library/Apache2/logs/access_log
# Enable proxying for tomcat Enquiry
ProxyRequests off
ProxyPass /myapp http://localhost:8081/myapp
ProxyPassReverse /myapp http://localhost:8081/myapp
</VirtualHost>I have tried it without virtual hosts and the result is the same.
Thanks, Ian.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

