Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] How to get nginx serving pages?
Date: Mon, 07 Nov 2016 16:20:16
Message-Id: 1516313.2svuVQjsUS@peak
1 Hello list,
2
3 Several years ago I set up an apache2 web server to host a development site,
4 and I had quite a struggle to get it all set up. Now I want to do it again,
5 but I decided to try nginx instead. I've followed the instructions here:
6
7 https://wiki.gentoo.org/wiki/Nginx
8
9 ...but I get Connection Refused in www-client/links running on the same
10 machine, or in Firefox over the LAN. I can run links as myself or as root,
11 with the same result. But:
12
13 $ curl http://localhost
14 Hello, world!
15
16 # netstat -tulpen | grep :80
17 tcp 0 0 127.0.0.1:80 0.0.0.0:* LISTEN 0 60680 19196/nginx: master
18
19 # cat /var/log/nginx/error_log
20 2016/11/07 16:06:19 [notice] 19195#0: using the "epoll" event method
21 2016/11/07 16:06:19 [notice] 19195#0: nginx/1.10.1
22 2016/11/07 16:06:19 [notice] 19195#0: OS: Linux 4.4.26-gentoo
23 2016/11/07 16:06:19 [notice] 19195#0: getrlimit(RLIMIT_NOFILE): 1024:4096
24 2016/11/07 16:06:19 [notice] 19196#0: start worker processes
25 2016/11/07 16:06:19 [notice] 19196#0: start worker process 19197
26
27 /etc/nginx/nginx.conf is untouched since installation.
28
29 Shorewall isn't logging anything.
30
31 What have I overlooked?
32
33 --
34 Regards
35 Peter

Replies

Subject Author
Re: [gentoo-user] How to get nginx serving pages? "Poison BL." <poisonbl@×××××.com>