Welcome! Log In Create A New Profile

Advanced

nginx V1.8.0 : Size of URL

Posted by goratki 
nginx V1.8.0 : Size of URL
December 29, 2015 12:26PM
If I come here, it is that I 'm going crazy.

I use nginx to reverse proxy . Everything works fine , but from the moment the size of the URL is too long (nothing crazy , as it must do in the 1000 characters) it no longer works.

Below the message ok a URL, and the message when it blocks .

OK :
2015/12/29 18:12:41 [debug] 1036#2784: *23 WSARecv: fd:420 rc:0 1378 of 131072

KO :
2015/12/29 18:03:05 [debug] 1036#2784: *2 WSARecv: fd:408 rc:-1 0 of 131072
2015/12/29 18:03:05 [info] 1036#2784: *2 WSARecv() failed (10054: FormatMessage() error:(15105)) while waiting for request, client: 2.12.36.49, server: 0.0.0.0:80

Here is the configuration I use:

http {
include C:/nginx-1.8.0/conf/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log C:/nginx-1.8.0/logs/access_main.log main;

sendfile on;
tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;

tcp_nodelay on;
gzip on;
gzip_comp_level 5;
gzip_http_version 1.0;
gzip_min_length 0;
gzip_types text/plain text/html text/css image/x-icon application/x-javascript;
gzip_vary on;

include C:/nginx-1.8.0/conf.d/*.conf;

server {
listen 80;
server_name localhost;
access_log C:/nginx-1.8.0/logs/web2print.access.log;
error_log C:/nginx-1.8.0/logs/korben.nginx_error.log debug;

location /web2print/ {
proxy_pass http://192.100.100.82:6080/web2print/;
}

}
}



If you could help me , I 'd appreciate it .

Thank you

Gorki
Re: nginx V1.8.0 : Size of URL
December 29, 2015 01:39PM
https://forum.nginx.org/read.php?5,245516

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: nginx V1.8.0 : Size of URL
December 29, 2015 03:24PM
Hello,

Thank you for that.

I'm really sorry , but I do not understand the connection between my problem and the link provided in this post. Would it be possible to give me a little more precision ?

Thanks again,
Re: nginx V1.8.0 : Size of URL
December 29, 2015 04:23PM
Not really, you could try:

location /web2print {
proxy_pass http://192.100.100.82:6080/web2print;
}

Hence the / removal.
The backend seems to be returning an error.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: nginx V1.8.0 : Size of URL
December 29, 2015 06:48PM
Hi,

I tried to remove the '/' at the end of the URL , but the problem is still present.

With one more character in the GET variable, it no longer works.

Thanks for your help,
Re: nginx V1.8.0 : Size of URL
December 30, 2015 03:28AM
Show us more of what you are doing with Curl, what you send and what suppose to happen.
And try a more recent version like 1.9

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: nginx V1.8.0 : Size of URL
December 30, 2015 04:54AM
Thank you for your help.

I updated with nginx version 1.9.9 and unfortunately the problem is always the same.

Everything seemed to work until my URL reaches a certain size.

For example, if I put it , it works :

http://XX.XXX.XXX.XXX/test2print/redirecttestingPatri.php?XML=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxXXXXXXXXXXXXXXXXXXXXXXXXXXX

And when I add a character ( an 'x' ), for example , my browser turn around " the connection was interrupted ..."

When I 'm on the server where nginx is installed with localhost as address, I do not have that URL big problem. I have only this limit when I attack the server 's public address.

Thank you to devote myself time to help me.

Gorki
Re: nginx V1.8.0 : Size of URL
December 30, 2015 05:18AM
If its only external then it is a router/firewall issue not nginx.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: nginx V1.8.0 : Size of URL
January 14, 2016 01:51AM
Hi,

The problem actually came from parametrage the firewall.
Thank you again for taking the time to give me your help.

Have a nice day,
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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