Ian, The Struts tags might be assuming the base href = http://localhost:8081. This is very much a possibility if you are using <html:base/> tag as the servlet container interprets urls with respect to its base rather than your web server doc root. Consider using your own tag that generates <base href="http://www.mydomain.com"/>.
Hope that helps. Srikanth Shenoy Author Struts Survival Guide: Basics to Best Practices J2EE Project Survival Guide "Ian Wright" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hello, > > 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]

