• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Facing problem while accessing tomcat on a dedicated hosting Linux server

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 689
Scala Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 23409
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Oh. Hi guys! Look at this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic