I am using Litespeed Web Server 3.3.14. I am attempting to configure a virtual host to serve bothrails apps and jsp pages. I have setup a Rails context for the virtual host with a URI of "/" and a location of "$VH_ROOT/". This works well, and I can serve static pages under the public directory as well as rails applications defined under the app directory.
I am running Tomcat 6.0.18 on the same server and can access the Tomcat server with http://localhost:8080/. The example servlets and jsp examples that come with Tomcat work just fine.
I have had difficulty trying to access the Tomcat server through the Litespeed server. Under the virtual host I have have defined an External App of type "Servlet Engine" named "Tomcat 6" with address equal to "localhost:8009". I have also defined a Script Handler of type "Servlet Engine" for suffix "jsp" to be handled by "Tomcat 6".
I defined a Java Web App context for the "Tomcat 6" handler. The URI was set to "/examples/" and the Location was set to "/usr/local/tomcat/webapps/examples/". I am able to access the examples page from the web browser if I use the url "http://www.myhost.com/examples/index.html". However, if I try to access this index page by using the url "http://www.myhost.com/examples/", the Litespeed server responds with a 404 File Not Found error, and displays the "404.html" page from the Rails app's public directory.
When I try to access any of the JSP examples on the Tomcat server, Litespeed responds with a 403 Forbidden error.
When I attempt to access a JSP file, sample.jsp, located in the Rails public directory, the Litespeed server responds with a 403 Forbidden error.
I tried replacing the Java Web App context with a Servlet context. This context also used the "Tomcat 6" handler that I had defined. The URI was "/examples/". When I attempted to access the examples page (on the Tomcat server, via Litespeed) using the url "http://www.myhost.com/examples/index.html", the Litespeed server responded with a 403 Forbidden error.
So, here are my questions:
Are there any known problems between Litespeed and Tomcat 6.0.x?
Is it possible to set up a virtual host that uses both a Rails context and a Java Web App and or Servlet context? Can the Rails context be setup for URI "/", or is that what is causing some of the problems here?
How should one configure Litespeed using a Java Web App context so that index files are displayed when a directory uri is used?
What might be causing the 403 errors I am seeing? I checked file permissions, and the JSP files are set the same as the html files that are being served correctly.
I appreciate any assistance you can provide.
I am running Tomcat 6.0.18 on the same server and can access the Tomcat server with http://localhost:8080/. The example servlets and jsp examples that come with Tomcat work just fine.
I have had difficulty trying to access the Tomcat server through the Litespeed server. Under the virtual host I have have defined an External App of type "Servlet Engine" named "Tomcat 6" with address equal to "localhost:8009". I have also defined a Script Handler of type "Servlet Engine" for suffix "jsp" to be handled by "Tomcat 6".
I defined a Java Web App context for the "Tomcat 6" handler. The URI was set to "/examples/" and the Location was set to "/usr/local/tomcat/webapps/examples/". I am able to access the examples page from the web browser if I use the url "http://www.myhost.com/examples/index.html". However, if I try to access this index page by using the url "http://www.myhost.com/examples/", the Litespeed server responds with a 404 File Not Found error, and displays the "404.html" page from the Rails app's public directory.
When I try to access any of the JSP examples on the Tomcat server, Litespeed responds with a 403 Forbidden error.
When I attempt to access a JSP file, sample.jsp, located in the Rails public directory, the Litespeed server responds with a 403 Forbidden error.
I tried replacing the Java Web App context with a Servlet context. This context also used the "Tomcat 6" handler that I had defined. The URI was "/examples/". When I attempted to access the examples page (on the Tomcat server, via Litespeed) using the url "http://www.myhost.com/examples/index.html", the Litespeed server responded with a 403 Forbidden error.
So, here are my questions:
Are there any known problems between Litespeed and Tomcat 6.0.x?
Is it possible to set up a virtual host that uses both a Rails context and a Java Web App and or Servlet context? Can the Rails context be setup for URI "/", or is that what is causing some of the problems here?
How should one configure Litespeed using a Java Web App context so that index files are displayed when a directory uri is used?
What might be causing the 403 errors I am seeing? I checked file permissions, and the JSP files are set the same as the html files that are being served correctly.
I appreciate any assistance you can provide.