PDA

View Full Version : Configure /servlets/ in LSWS to Tomcat


Elik
11-25-2009, 05:28 PM
Hello,

I have been reviewing the posts here, and I am not having any luck on getting one thing to work properly. There is a setting that is defined in cpanel to call servlets with /servlet/ and /servlets/ along with .jsp to be passed to ajp13.

However, I having no luck on trying to get that specific part of /servlet/ passed to the servlet settings in the LSWS for it to work. How do I do this to make it work properly for it?

NiteWave
11-25-2009, 07:08 PM
please refer our demo page:
http://www.litespeedtech.com/litespeed-live-demos.html

login the web admin console, check the settings relating to
"Apache Tomcat JSP-Examples"

see if it helps.

Elik
11-25-2009, 07:29 PM
Hello,

I did check in there, but there is nothing in the configuration of the LSWS itself to show how it is configured properly for it, since we are talking about servlets itself, on how to load it with /servlets/ handler.

NiteWave
11-25-2009, 08:37 PM
I'd explain more about the demo settings.

1.under "Virtual Hosts » demo", define a "Servlet Engine" External App "TomcatAJP", address is 127.0.0.1:8009

2.under "Virtual Hosts » demo", define a "Java Web App" context:
URL: /jsp-examples/ (in your case may be /servlets/)
Servlet Engine:TomcatAJP (defined in step 1)
Location:$VH_ROOT/html/tomcat/webapps/jsp-examples/ (.jsp is here)

3.start up tomcat.
$VH_ROOT/html/tomcat/bin>export JAVA_HOME=/usr
$VH_ROOT/html/tomcat/bin>./startup.sh

Elik
11-25-2009, 09:10 PM
Okay..that explains it. Now one more question.

How do I make it a wild card that applies for all virtual hosts, so it maps the username into the settings for the servlets so it serves it up?