This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Facing problem while accessing tomcat on a dedicated hosting Linux server

 
pavan raj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a dedicated Linux server to host my website, which apparently runs on apache and i have placed the code in /var/www/html/ and its working fine. But now i wanted to host another one(war file) using the tomcat but after i install tomcat and doing everything i am not able to access the tomcat. Tomcat is running fine but couldn't access tomcat home page with http://IP_Adress:8080/ As far as i understood , the firewall is blocking the port 8080. So could anyone please help me unblocking the port.
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pavan,

welcome to Java Ranch ..

If you have install Apache and tomcat both can you please check both server port number if both run on same port you have to change one server port number.

And if you host your application with provider and you think your port bock by server ask your provider to unblock the port.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17995
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would have had more success asking about this in the Linux forum, since it's related to the OS-supplied firewall.

Usually, you'd add a rule to the firewall, like so:



For RedHat/Fedora/CentOS, replace the INPUT chain with RH-Firewall-1-INPUT. You can also add limitations to which source IP addresses are authorized.

That will give you direct access from outside the box to Tomcat. On production servers, it's common to use Apache as a proxy to Tomcat, using either mod_proxy or the coyote connector. Which allows you the ability to talk to Tomcat on port 80 just like standard web clients like. When you install the Apache httpd server, most installers also add a firewall rule opening up port 80.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic