Welcome! Log In Create A New Profile

Advanced

Stream proxy ptotocol header corrupted

zdm
January 02, 2024 03:59PM
Stream proxy ptotocol header corrupted


Nginx sends proxy protocol header without triling "\r\n" when unix socket path is long,

Sample config:

```
strema {
server {
listen *.80;
proxy_pass unix:/var/run/1.socket;
proxy_protocol on;
}

server {
listen unix:/var/run/1.socket prtoxy_protocol;
proxy_pass 127.0.0.1:8080;
proxy_protocol on;
}
}

```

When send simple HTTP GET request to :80 - it;s ok;

But when socket oath is ontr, than 80 chars - nginx sends data like this ( WITHOUT "\r\n" separator after proxy protocol header ):

```
PROXY TCP 1.2.3.4 unix:.... pott1 port2GET
```
Subject Author Posted

Stream proxy ptotocol header corrupted

zdm January 02, 2024 03:59PM

Re: Stream proxy ptotocol header corrupted

zdm January 06, 2024 12:19PM

Re: Stream proxy ptotocol header corrupted

zdm January 18, 2024 03:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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