Using apache to redirect from the root “/” context to a webapp context

Just a short note:

The best way of doing this avoiding endless recursion is to use apaches RedirectMatch rule, like this:


RedirectMatch ^/$ http://targethost/mywebapp

Easy, agreed. But i’ve seen (and done it wrong my self) quite often…

This entry was posted on Monday, October 12th, 2009 at 20:54. Posted in: apache, java, open source, tomcat. You can follow any responses to this entry through the RSS 2.0feed. You can leave a response, or trackback from your own site.

Leave a Reply