Originally Posted by HvG Community
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
That was not the issue, once the proxy pass was already the php socket. The issue was that sourcebans was asking for 5.5 as recommended and I was using 7.4 (the latest at that time). I did some research and find out that the version is too new for sourcebans and that I should downgrade. Therefore I have php 5.6 and 7.4 running on my machine and sourcebans is running with php 5.6 with no errors at all!