Welcome! Log In Create A New Profile

Advanced

Re: Cannot listen to port 80 but 3000, 3080 without Apache

January 04, 2010 08:26AM
you have to start it as root, users don't have privs to open ports below 1024

On Mon, Jan 4, 2010 at 21:19, Arthur Chan <lists@ruby-forum.com> wrote:
> Hi Guys,
>
> I am using ubuntu and having nginx with thin (using sockets) and rails
> successfully --- only on port 3000 and 3080.
>
> When I try to change the nginx config and
> listen 80;
>
>
> it fails and the follows found in nginx/error.log
>
> 2010/01/04 21:08:25 [emerg] 21146#0: bind() to 0.0.0.0:80 failed (13:
> Permission denied)
>
>
>
> And I've checked what binding on port 80 but failed:
>
> arthur@ubuntuserver:~$ sudo netstat -plant | grep ':80'
> [sudo] password for arthur:
> tcp        0      0 0.0.0.0:8000            0.0..0.0:*
> LISTEN      21395/with_thin.con
> tcp        0      0 0.0.0.0:8025            0.0..0.0:*
> LISTEN      2999/master
> tcp6       0      0 :::8025                 :::*
> LISTEN      2999/master
> arthur@ubuntuserver:~$ lsof -i tcp:80
> arthur@ubuntuserver:~$ lsof -i tcp:8080
>
>
>
> Can you help me?
>
> Thanks a bunch!
> Arthur
> --
> Posted via http://www.ruby-forum.com/.
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
SubjectAuthorPosted

Re: Cannot listen to port 80 but 3000, 3080 without Apache

replayJanuary 04, 2010 08:26AM

Re: Cannot listen to port 80 but 3000, 3080 without Apache

Arthur ChanJanuary 04, 2010 09:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 184 on July 08, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready