Pihole + nginx Prefix Multiplexing not working

There are a few posts with answers to similar issues.

Maybe you can adapt one of the solutions:

Note:
I just added 2 links here, but you can use the search to find more similar issues.