Hi Julian, Julian Dunn schrieb: > Hi, > > I have some applications running under a Tomcat installation set up > in this way: > > [load balancer on port 80] ---> [Apache server on port 5001] --> > [Tomcat server on port 7001] > > One of the Tomcat applications sends a redirect to Apache because > there is a <welcome-file> directive. However, the redirect that is > sent says: > > www.site.com:5001/foo/bar.jsp > > instead of > > www.site.com/foo/bar.jsp > > On the Apache side, I already have ServerName set to www.site.com:80 > to solve this problem for mod_rewrite. What is the corresponding > directive for Tomcat?
How do you connect Apache to Tomcat? If you are using mod_jk, the module gets the port it sends to Tomcat via ap_get_server_port(), which in turn depends on UseCanonicalName. If this is set to On, the port is also determined from the port in ServerName. The AJP protocol then makes sure, that Tomcat thinks it's using the port that mod_jk told Tomcat. In case this doesn't work or you are using some other way to connect Apache to Tomcat: The connector element in server.xml knows about attributes proxyName, proxyPort and scheme. See http://tomcat.apache.org/tomcat-6.0-doc/config/http.html > - Julian Regards, Rainer --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]