Welcome! Log In Create A New Profile

Advanced

Re: Connection timeout from work, working anywhere else

Francis Daly
May 05, 2015 05:08PM
On Tue, May 05, 2015 at 04:00:11PM -0400, GuiPoM wrote:

Hi there,

> I just tried to put debug as for example : "access_log
> /var/log/nginx/access.log debug;"
>
> But:
> Restarting nginx: nginx: [emerg] unknown log format "debug" in
> /etc/nginx/nginx.conf:36
> nginx: configuration file /etc/nginx/nginx.conf test failed

Does "nginx -V" show "--with-debug"?

"debug" is for error_log, not for access_log.

> 2/ In error log, even if I can't set a debug level, there is already
> something strange I would like to change:
>
> 2015/05/02 13:25:05 [error] 2144#0: *4926 upstream prematurely closed
> connection while reading response header from upstream, client:
> XX.XX.XXX.XXX, server: , request: "GET
> /socket.io/?EIO=3&transport=polling&t=1430565786187-49&sid=IIJ1gX_E4Ny_ojN8AACB
> HTTP/1.1", upstream:
> "http://127.0.0.1:8070/socket.io/?EIO=3&transport=polling&t=1430565786187-49&sid=IIJ1gX_E4Ny_ojN8AACB",
> host: "hostname.dtdns.net:9876", referrer:
> "https://hostname.dtdns.net:9876/jeedom/index.php?v=m&"
>
> How host and referrer can be filled with a dynamic dns name ? How nginx is
> aware of this information ? I am requesting with an IP address, so no chance
> this information come from the sender.

When you copy-paste the commands issued and the responses gathered,
it may become clearer where all of the information is coming from.

My guess is that you are issuing one request with an ip address, and
that is returning a http redirect to a hostname; and then you are issuing
the next request to that hostname.

But until you show your work, all anyone can do here is guess.

> Could this configuration be erroneous ?
> (/etc/nginx/sites-enabled/default_ssl)
>
> location /socket.io/ {
> proxy_pass http://127.0.0.1:8070/socket.io/;
> proxy_http_version 1.1;
> proxy_set_header Upgrade $http_upgrade;
> proxy_set_header Connection "Upgrade";
> proxy_set_header Host $host;
> proxy_redirect off;
> proxy_read_timeout 6000;
> }

This looks like the connection is using WebSockets.

Does your proxy server at work allow WebSocket connections to pass
through it?

Can you successfully connect to any WebSocket service anywhere from
work? If not, the problem may not be on the nginx side.

Good luck with it,

f
--
Francis Daly francis@daoine.org

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

Connection timeout from work, working anywhere else

GuiPoM April 18, 2015 07:20PM

Re: Connection timeout from work, working anywhere else

GuiPoM April 22, 2015 01:42AM

Re: Connection timeout from work, working anywhere else

Mihai Vintila April 22, 2015 08:42AM

Re: Connection timeout from work, working anywhere else

GuiPoM April 23, 2015 09:07AM

Re: Connection timeout from work, working anywhere else

GuiPoM May 02, 2015 10:52AM

Re: Connection timeout from work, working anywhere else

Francis Daly May 04, 2015 04:12AM

Re: Connection timeout from work, working anywhere else

GuiPoM May 04, 2015 02:19PM

Re: Connection timeout from work, working anywhere else

Francis Daly May 05, 2015 02:12PM

Re: Connection timeout from work, working anywhere else

GuiPoM May 05, 2015 04:00PM

Re: Connection timeout from work, working anywhere else

Francis Daly May 05, 2015 05:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 228
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