1 |
On Monday 07 Nov 2016 12:17:05 Poison BL. wrote: |
2 |
|
3 |
> From the configuration in the aforementioned guide: |
4 |
> |
5 |
> server { |
6 |
> listen 127.0.0.1; |
7 |
> server_name localhost; |
8 |
> |
9 |
> access_log /var/log/nginx/localhost.access_log main; |
10 |
> error_log /var/log/nginx/localhost.error_log info; |
11 |
> |
12 |
> root /var/www/localhost/htdocs; |
13 |
> } |
14 |
> |
15 |
> This specifically instructs nginx to listen only on 127.0.0.1, so even |
16 |
> connections from the same machine to its hostname or external IP |
17 |
> address will not hit nginx there. You'll need to change the 'listen' |
18 |
> value to determine what connections it should be answering. See the |
19 |
> nginx documetation on that here: |
20 |
> |
21 |
> http://nginx.org/en/docs/http/ngx_http_core_module.html#listen |
22 |
> |
23 |
> I would suspect for your internal network use-case, you'll want: |
24 |
> |
25 |
> listen *:80; |
26 |
|
27 |
Yes, but for two things: |
28 |
|
29 |
1. With links on the same host I specified http://localhost, and localhost |
30 |
resolves to 127.0.0.1. |
31 |
|
32 |
2. I made the change you recommended and it didn't help. |
33 |
|
34 |
-- |
35 |
Regards |
36 |
Peter |