<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v6.30.12-19435">
  <meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
  <title>RE: nginx apache and port</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<p>Hi,</p><p>&nbsp;</p><p>If you don&#39;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.</p><p>&nbsp;</p><p>I suggest you compile from source, deploy the binary and configurations and configure Nginx to run at port 8080, which many people do. Can&#39;t be a problem.</p><p>&nbsp;</p><p>Cheers,<br />&nbsp;</p><blockquote style="border-left: 2px solid rgb(50, 95, 186); padding-left: 5px; margin-left: 5px;">-----Original message-----<br /><strong>From:</strong> JCR &lt;nginx-forum@nginx.us&gt;<br /><strong>Sent:</strong> Wed 26-05-2010 19:27<br /><strong>To:</strong> nginx@nginx.org; <br /><strong>Subject:</strong> nginx apache and port<br /><br />Hello,<br /><br />I have a centos 5 box with apache running fine and listening to port 80. I&#39;d like to try nginx on let&#39;s say port 5080 (or maybe there is a better port), without disturbing my apache setup. <br /><br />(1) If I compile nginx from source and do nothing, will my apache setup be disturbed?<br /><br />(2) I am thinking that all the work to make sure nginx listens to port 5080 is to be done in the nginx.conf &nbsp;file; is that right?<br /><br />Thanks<br /><br />Posted at Nginx Forum: http://forum.nginx.org/read.php?2,90556,90556#msg-90556<br /><br /><br />_______________________________________________<br />nginx mailing list<br />nginx@nginx.org<br />http://nginx.org/mailman/listinfo/nginx<br /></blockquote>
</body>
</html>