|
I reinstalled Tomcat 6 and JSPs worked again. When I compared this installation with the previous, I realized that I had modified Tomcat's server.xml file, adding this configuration:
<Valve className="org.apache.catalina.valves.RemoteAddrVa lve" allow="127.0.0.1,0:0:0:0:0:0:0:1%0,::1" />
This is applied to the Catalina engine, and allows only localhost access to the Tomcat server. This was interfering with communication between Litespeed and Tomcat. Once this valve setting was removed, I could access the example JSP and servlet pages on Tomcat through a Litespeed Java Web App context. It's better to limit access to the Tomcat server using the server's firewall.
I applied the rewrite rule for the Rails context that you provided me didn't work at first. That was because I had added it after other rewrite rules already there. Once I moved it to the top of the rules list, it worked great. Index files are now returned when the uri ends with a directory. I need to learn more about rewrite rules.
JSP files in the Rail's public directory are still not being executed. Tomcat returns a 404 File not found result. I guess I need to place any JSP files that need to be executed under Tomcat's webapp directory, and link to there through a Java Web App context, rather than put them with other files being served in the Rails context.
Thank you for all your help and quick response. Much appreciated.
|