Fedora Linux Support Community & Resources Center
  #1  
Old 31st March 2012, 08:33 AM
Antrikssh Offline
Registered User
 
Join Date: Oct 2011
Posts: 29
linuxfirefox
Question Unable to access my webapplication through port 80 ?

Hello Everyone,

I have installed tomcat5.5 in my fedora 15 system at that time, I am new with the tomcat. So for installing it I have simply follow the instruction that i found over the net and set the port 8080 to access my web application. After that I have run my web application easily by using "http://localhost:8080/MyWebApp/WelcomePage.jsp".

But now I have to replace the "localhost:8080" by "localhost" for which i need to configure my application with port 80. I have googled for that and I found that after doing some changes in server.xml file of tomcat, I will easily get what I want.

I have changed the configuration like

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
to
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
this step I found when I googled but when I restart tomcat and enter the address "http://localhost/MyWebApp/WelcomePage.jsp" on the url my request is rejected. After that I change the port like

<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
to
<Connector port="8000" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
after restart tomcat I access my page by using "http://localhost:8000/MyWebApp/WelcomePage.jsp".

please help me out of this .

Thanks & Regards,

Antrikssh
Reply With Quote
  #2  
Old 20th April 2012, 05:23 PM
rolandm Offline
Registered User
 
Join Date: Apr 2012
Location: Finland
Posts: 6
linuxfedorakonqueror
Re: Unable to access my webapplication through port 80 ?

Isn't Apache (=httpd) running in your machine?

E.g. on my machine httpd is listening on the default port:
[root@rmu40 ]# netstat -tulpn| grep -w 80
tcp 0 0 :::80 :::* LISTEN 14667/httpd
Reply With Quote
  #3  
Old 20th April 2012, 05:49 PM
muep Offline
Registered User
 
Join Date: Jun 2006
Posts: 123
linuxfirefox
Re: Unable to access my webapplication through port 80 ?

Quote:
Originally Posted by Antrikssh View Post
this step I found when I googled but when I restart tomcat and enter the address "http://localhost/MyWebApp/WelcomePage.jsp" on the url my request is rejected. After that I change the port like
A process needs to run as root in order to listen in port 80. You did not state if you had taken care of this, so I assume you are still running it as some less privileged user. I think it also makes sense to have Tomcat and the applications running on top of it to run as a non-root user.

To access you Tomcat-based applications through port 80, you might install a simpler web server like Apache httpd to listen there and reverse proxy some requests (likely just ones starting with a specific URL path component) to an appropriate URL in the Tomcat that runs in port 8080 or some other less privileged port. This way the privileged process does not have as much responsibility and web application specific security problems would be somewhat less severe when they lack root privileges.
Reply With Quote
Reply

Tags
access, port, unable, webapplication

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
added port to firewall, still cannot access (fc6) mike-g EOL (End Of Life) Versions 8 5th April 2007 12:41 PM


Current GMT-time: 18:49 (Friday, 24-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Katiola - Buka Travel Photos on Instagram - Godda