Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Oct 11, 2010 7:37 am 
Offline
Senior Newbie

Joined: Mon Oct 11, 2010 7:32 am
Posts: 5
hello Fellow Linode users,

I have just installed Tomcat on my Linode. When I try to bind it to port 80, I get below error

java.net.BindException: Permission denied <null>:80

I am sure it may be an issue of having another program using port 80 or I don't have enough permissions. But I logged in as root user, so it shouldn't be a problem.

Any hint is much appreciated.

cheers


Top
   
 Post subject:
PostPosted: Mon Oct 11, 2010 11:30 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
# netstat -nap | grep ':80' | grep LISTEN


Top
   
 Post subject:
PostPosted: Mon Oct 11, 2010 3:54 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
do you really want tomcat listening to 80? Usually you setup a real webserver in front of it.


Top
   
 Post subject:
PostPosted: Tue Oct 12, 2010 6:09 am 
Offline
Senior Newbie

Joined: Mon Oct 11, 2010 7:32 am
Posts: 5
Thanks glg/rsk.
Yeah. I can configure iptables to direct all traffic on port 80 to tomcat port.

I google and found this if anybody wants to bind it to port 80

Yeah you are right. I dont need to bind it to port 80, I can configure my iptable to redirect all traffic on 80 to tomcat port.
If at all we want to bind to 80, this link may help.
http://thelowedown.wordpress.com/2010/0 ... ianubuntu/


Top
   
 Post subject:
PostPosted: Tue Oct 12, 2010 10:04 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
I wasn't talking about iptables. I'm talking about putting up apache or nginx or something else in front of it. Tomcat isn't meant to be a front end web server, it's an application server.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group