• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk and Tomcat (JSP)Problems

A

asiawebplus

Guest
My tomcat is enabled in Plesk control panel. When I would like to test jsp file that stay in httpdocs , like this:

http://www.hotelsguru.com/test.jsp
It show like this :

Hello! The time is now <%= new java.util.Date() %>

There is no execute the JAVA. That is simple thing just date command in JAVA.

I have tried by using the JSP by installing the WAR File in Tomcat Configuration page in Plesk. It works but it is separate the file not in httpdocs , we cannot use ssl for those jsp (war file) due to normally the ssl work under httpsdocs only.

Another thing is the port of JSP , it must be specific :9080 only when you can use it. I don't know it will effect to search engine to index this page or not.

The last thing , if we can use JSP only when we install the WAR file . How can we set up the homepage to use JSP. I would like to use the website as JSP driven pages. not application page.
 
I'm researching similar problems when I stumbled across your post.

1. In answer to this question you should follow these instructions:

http://kb.swsoft.com/article_57_902_en.html

2. It sounds to me like you be using a a rewrite rule, something like this:

RewriteRule ^(.*) http://www.domainname.com:9080/finmart/$1 [proxy,last]

but I'm not sure the exact syntax. There are also some reports that this is not neccesary.

Lastly you might have to update the default document (called DirectoryIndex) in vhost.conf but I'm not sure if this will work for JSP pages.
 
Back
Top