php-spx icon indicating copy to clipboard operation
php-spx copied to clipboard

No UI on site hosted behind Reverse Proxy

Open actorius opened this issue 2 years ago • 3 comments

SPX is enabled in phpinfo() output Trying open https://somedomain.com/spx/?SPX_KEY=dev&SPX_UI_URI=/ - opening my websitepage. This is Reverse Proxy host that target to Nginx-host Trying open https://direct-host-name/spx/?SPX_KEY=dev&SPX_UI_URI=/ - opening SPX page. This is Nginx-host with proxy_pass to php-fpm

My config:

spx.debug =1
spx.http_enabled =1
spx.http_ip_whitelist ="*"
spx.http_key="dev"

Possible need set some headers on reverse proxy?

actorius avatar Oct 27 '23 01:10 actorius

Can you paste here the corresponding PHP logs ?

NoiseByNorthwest avatar Oct 27 '23 15:10 NoiseByNorthwest

At this is problem... no logs present on PHP or Nnginx

actorius avatar Oct 28 '23 14:10 actorius

@actorius try to add this spx.http_trusted_proxies=REMOTE_ADDR

kamil-karkus avatar Nov 16 '23 14:11 kamil-karkus