Reply To: Separate rewrite rules for two virtual host apps running on same tomcat server

Splash Forums Rewrite Users Separate rewrite rules for two virtual host apps running on same tomcat server Reply To: Separate rewrite rules for two virtual host apps running on same tomcat server

#27531

eframsergio
Participant

Just to make sure, I tasted it again a few minutes ago…

When I comment out the line:

<Context docBase=”my-second-app” path=”/my-second-app” reloadable=”true” source=”org.eclipse.jst.jee.server:my-second-app”/>

in the server.xml file, the second app’s rewrite rules will NOT Redirect from http://localhost/my-second-app/ to http://localhost/my-second-app/index.xhtml and I get this error.


HTTP Status 404 - The requested resource is not available.

The first app’s rewrite rules work regardless of whether or not a similar context property is set.

Finally, when I uncomment the said Context property, the rewrite rule for second app works correctly.

Strange indeed… I still haven’t figure out how to set this property in the production server because each app runs an a separate host as root and require a different setup, but working on it…

Thanks!

  • This reply was modified 5 years, 1 month ago by  eframsergio.