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

#27527

eframsergio
Participant

To be honest, I don’t remember adding that specific line. I was playing with the virtual host configuration context for my new two apps and I know I entered the docBase and path, but not the source property. So eclipse/tomcat must have added that.

Anyway, while I was cleaning the configuration, I came across those two lines (one for each virtual host) and deleted them and all of the sudden my debug messages (ie. .perform(Log.message(Level.INFO, “Client requested path: {path}”))) were no longer output to the console from either app. However, the rewrite configuration was working on the first app, but not the second one. So for instance, http://localhost/my-second-app/ would no longer forward to http://localhost/my-second-app/index.xhtml

So after re-inserting those two previous config lines, log messages from both apps would now output to console and the second app would correctly forward to start page.

I’m glad is working now, but I only found the solution by pure chance! I would have never thought of adding those context lines to my host configurations.

What do you make of all this?

Thanks in advance!