1
23.1 Legacy Series / Re: Upgrade to 23.1.7_3 causes PR_END_OF_FILE_ERROR in NGINX
« on: June 15, 2023, 01:50:24 pm »
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.
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.