Proxy Problem

#1
Hello,

I have installed Debian 11 as Ubuntu 22.04 is still not there :(
As frontend i am using the NGINX Proxy Manager, all works fine exept i the PHP Variable:

$_SERVER['HTTP_X_FORPROTO__PROTO']

This has two _ _ this should be : $_SERVER['HTTP_X_FORPROTO_PROTO']
How can this be fixed ?


Code:
$_SERVER['HTTP_X_FORWARDED_FOR']    x.x.x.x
$_SERVER['HTTP_X_FORWARDED_SCHEM']    https
$_SERVER['HTTP_X_FORPROTO__PROTO']    https
$_SERVER['HTTP_X_REAL_IP']    x.x.x.x
$_SERVER['HTTP_CF_CONNECTING_IP']    x.x.x.x
This way it will break the PHP script that detects Proxy servers
This works fine on Ubuntu 20.04, what is different ?
 
Top