• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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

CA3LE

New Pleskian
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 directives" I have

listen 8080;

Does anyone know what I'm talking about? How can I get nginx to tell apache that it's port 8080 not 443, so that php can pass the correct port number to the $_SERVER['SERVER_PORT'] variable.
 
Back
Top