File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Facing problem while accessing tomcat on a dedicated hosting Linux server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Facing problem while accessing tomcat on a dedicated hosting Linux server " Watch "Facing problem while accessing tomcat on a dedicated hosting Linux server " New topic
Author

Facing problem while accessing tomcat on a dedicated hosting Linux server

pavan raj
Greenhorn

Joined: Sep 01, 2009
Posts: 1
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

Joined: Sep 07, 2008
Posts: 688

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.


Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer,My Blog
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16095
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
GeeCON Prague 2014
 
subject: Facing problem while accessing tomcat on a dedicated hosting Linux server