hi, in your tomcat server's webapp directory create a directory ./ROOT (in caps) and copy your application in there. Then restart tomcat.
In the workers.properties set the JkMount /* see: http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html Alternatively you can set the context xml file mapping to / or add a ROOT.xml, see http://tomcat.apache.org/tomcat-6.0-doc/config/context.html Btw,with mod_jk 1.2.26 you can use replace: JkMount /mywebapp ajp13 JkMount /mywebapp/* ajp13 with on line: JkMount /mywebapp|/* ajp13 If you need to keep the tomcat uri /mywebapp, then you need to set a ProxyPass directive in apache (see the mod_proxy doc). Rgrds, Fred Salalam wrote: > > I think my problem is very common, but I didn't find a solution. > > I have Tomcat 5.5 with a web application. Let's say this application is > deployed in the context 'mywebapp'. I can call the application with the > url http://mydomain.com:8080/mywebapp. > > But now i want to call the application via apache directly, e.g. with port > 80 so that the url is just http://mydomain.com > I already configured mod_jk a little bit but my problem is: How do I > forward the requests from apache to a specific webapplication in tomcat? > My workers.properties has the following content: > > ps=/ > worker.list=ajp13 > worker.ajp13.port=8009 > worker.ajp13.host=localhost > worker.ajp13.type=ajp13 > worker.ajp13.lbfactor=1 > > In httpd.conf I have the following entries: > > JkMount /mywebapp ajp13 > JkMount /mywebapp/* ajp13 > > This works fine with the url "http://mydomain.com/mywebapp" but I want to > use the url "http://mydomain.com" and every request to this url should be > forwarded to the "mywebapp"-application in tomcat. > > What is missing? > Thanks! > > -- View this message in context: http://www.nabble.com/Forward-request-from-apache-to-specific-web-application-tp21641751p21644174.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org