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.
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.
Some people, when well-known sources tell them that fire will burn them, don't put their hands in the fire.
Some people, being skeptical, will put their hands in the fire, get burned, and learn not to put their hands in the fire.
And some people, believing that they know better than well-known sources, will claim it's a lie, put their hands in the fire, and continue to scream it's a lie even as their hands burn down to charred stumps.
Oh. Hi guys! Look at this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners