Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - dcorral

#1
I found a solution:

I removed all lines "proxy_protocol" in all my servers and restared Nginx.

Step by step:

ssh root@<OPNSENSE-IP>
Select "8 ) Shell"

To debug error:
tail -f /var/log/nginx/*.log

You must to access to your url to force errror.

Probably you will see somthing like:
2023/06/15 12:37:12 [error] 90378#100106: *43 broken header

cd /usr/local/etc/nginx/
grep -i "proxy_protocol" *
cp nginx.conf nginx.conf-BACKUP
vi nginx.conf

Yoy must to remove ALL lines "proxy_protocol" in all your servers:

For example, if you have:
listen 443 http2 ssl proxy_protocol;

Change it like this:
listen 443 http2 ssl;

Then restart Nginx:

/usr/local/etc/rc.d/nginx configtest
/usr/local/etc/rc.d/nginx stop
/usr/local/etc/rc.d/nginx status
/usr/local/etc/rc.d/nginx start
/usr/local/etc/rc.d/nginx status

Now check you url one more time.
It has worked for me.
#2
Hi.

Same for version 23.1.9. Any news?

Thanks in advance.