Nginx with Varnish as a proxy. Phantom Port 80

Francis Daly francis at daoine.org
Fri Apr 1 07:16:24 UTC 2016


On Fri, Apr 01, 2016 at 08:12:12AM +0100, Francis Daly wrote:
> On Fri, Apr 01, 2016 at 12:42:57AM -0400, plutocrat wrote:

One silly typo and thinko...

> http://nginx.org/r/listen
> 
> "Default" there means that if a server{} block does not have any listen
> directive, it is equivalent to "listen *:80" (or "listen *:8080" if

8000, not 8080.

> running as non-root).
> 
> Your "letsencrypt" server{} block does not have any listen directive.
> 
> So add one there -- and to any other similar blocks -- or do not start
> nginx as root (and therefore be unable to listen to any port below 1024).

"start as not root" would listen on 8000; and would fail to listen on 443.

So adding an explicit "listen" to every server{} block without one is
the way to go.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list