Quantcast
Channel: Plesk 12.x for Linux
Viewing all articles
Browse latest Browse all 5117

nginx Listen port 8080 -- $_SERVER['SERVER_PORT'] shows "443"

$
0
0
I have nginx listening to port 8080, the site opens fine but in php $_SERVER['SERVER_PORT'] is being detected as port 443 -- $_SERVER['HTTPS'] is also set. I ultimately need $_SERVER['SERVER_PORT'] to show as "8080" for my application to work correctly. (long story why I even need that)

This worked fine before using nginx. I would add Listen 8080 in my httpd.conf and when you'd visit the site on port 8080 I was able to detect that... now it thinks that 8080 is 443.

Under "Additional...

nginx Listen port 8080 -- $_SERVER['SERVER_PORT'] shows "443"

Viewing all articles
Browse latest Browse all 5117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>