• 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

I want Java on port 80 !!

A

AbsolutelyFreeW

Guest
Hello, I'm a little confused. ok, tomcat usually comes configured to run on port 8080, but that's just for testing. I thought everyone wanted their sites to run on http port???

How am I going to tell customers, yes we support java, but only on port 9080 ? Can I somehow change the configurations for it to exclude an ip from iis and run it with tomcat instead? or.. would that work? I don't see how that can be done in plesk..anyone help? Are you all using java on an alternative port?
 
You could just tell your customers to put a redirect in that points to the same site at that port. I could be wrong but if you can it's as simple as one line of code:
Code:
<% Response.Redirect = "http://www.domain.dom:9080" %>
 
Umm.. I do not want them to need to put a redirect on every page. furthermore the 9080 should not be shown in any browser address field, and frame masking is not accepted as it throws all search engines off. If you have a solution, I'd appreciate it :) thank you! :)
 
I apologize I really haven't ever used Tomcat because of it's high CPU and memory overhead so my experience is limited.

You could try my approach to it and say "sorry we don't support JSP on Windows hosting, perhaps you should try our Linux hosting product". ;)
 
Originally posted by Mertz
I apologize I really haven't ever used Tomcat because of it's high CPU and memory overhead so my experience is limited.

You could try my approach to it and say "sorry we don't support JSP on Windows hosting, perhaps you should try our Linux hosting product". ;)
This is on Linux and we are having the same issue. Has anybody figured out how to get this to run on port 80?
 
This is the reply I got from support on this issue (from Alexey I. Lysov that is IMO one of the best Technical support engineers working for plesk)

As for your issue, of course, you may reserve IP for that purpose and so on but Plesk doesn't support such a configuration and each time after you run for example "websrvmng" utility etc. you will need to configure each site with tomcat on 80 port again. It's a pity but true.

In other words, we are pretty much out of luck with this setup. However you can wildcard redirect the domain to that port, meaning a request for

yourdomain.com:80/somepath/yourfile.jsp

would redirect to

yourdomain.com:9080/somepath/yourfile.jsp

It can be done in IIS, I would think in apache too. It would still show 9080 in the browser but you can at least use port 80 to retrieve the pages.
 
Port 8080 is the standard alternate http port typically used for java/jsp. As far as I know, you can't run multiple servers (iis or apache and tomcat) on the same port, so for those sites you want java on port 80, if you can get it on those sites specifically, you're http port would have to be changed to something else basically flipping ports on those sites. This may be inconvenient unless the entire site is java/jsp because most people expect standard html to be served up on port 80.
 
Back
Top