Welcome! Log In Create A New Profile

Advanced

RE: nginx apache and port

Markus Jelsma
May 26, 2010 01:40PM
Hi,

 

If you don't run it as a superuser, Nginx cannot listen on port 80 and therefore not intervene with your Apache. Also, compiling and running as superuser while Nginx is configured to listen at port 80 will not intervene with Apache as long as Apache was already running, only one process can claim a port at the same time.

 

I suggest you compile from source, deploy the binary and configurations and configure Nginx to run at port 8080, which many people do. Can't be a problem.

 

Cheers,
 
-----Original message-----
From: JCR <nginx-forum@nginx.us>
Sent: Wed 26-05-2010 19:27
To: nginx@nginx.org;
Subject: nginx apache and port

Hello,

I have a centos 5 box with apache running fine and listening to port 80. I'd like to try nginx on let's say port 5080 (or maybe there is a better port), without disturbing my apache setup.

(1) If I compile nginx from source and do nothing, will my apache setup be disturbed?

(2) I am thinking that all the work to make sure nginx listens to port 5080 is to be done in the nginx.conf  file; is that right?

Thanks

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,90556,90556#msg-90556


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx apache and port

JCR May 26, 2010 01:20PM

Re: nginx apache and port

vesperto May 26, 2010 01:32PM

RE: nginx apache and port

Markus Jelsma May 26, 2010 01:40PM

Re: nginx apache and port

JCR May 26, 2010 03:12PM

RE: Re: nginx apache and port

Markus Jelsma May 26, 2010 03:26PM

Re: nginx apache and port

vesperto May 26, 2010 03:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 265
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready