I’m using apache on 80 port, that forwarding all requests on tomcat6 on port 8080. In my application I’m using struts2 framework. In tomcat I’m using redirect from ROOT application to my application “MyApp”.
When I walk on the links on my site I see good URLs like http://www.mysite.com/order
But when struts redirects me anywhere URLs take the form like http://www.mysite.com:8080/MyApp/order
How to make this URLs simmilar?
I do it using the AJP connector between Apache and Tomcat. Here’s a snippet of what I use in my config files:
Part of Apache’s configuration ($APACHE_DIR/sites-available/default):
Part of Tomcat’s configuration (conf/server.xml):