• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

Forwarded to devs Docker-EXT proxy rules missing header

TobiasP

Regular Pleskian
TITLE:
Docker-EXT proxy rules missing header
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:
Plesk Onyx, Version 17.8.11 Update #39, Debian 8.11
PROBLEM DESCRIPTION:
If you configure proxy rules to docker in the Plesk GUI, several lines of nginx config get added to the virtual hosts nginx file.
however one header is important for a lot of applications that run behind an nginx proxy.
proxy_set_header X-Forwarded-Proto $scheme;

examples that don't work without are e.g. varnish, gitlab, openproject​
STEPS TO REPRODUCE:
enabling proxy rules for an application that needs the "X-Forwarded-Proto" results in a buggy, non-working application (in case of openproject because the auth cookie is not set correctly)
see here:
422 CSRF token problem | OpenProject Community
ACTUAL RESULT:
nginx config is missing the X-Forwarded-Proto header​
EXPECTED RESULT:
nginx config having the X-Forwarded-Proto header set​
ANY ADDITIONAL INFORMATION:
I created a modified version of /opt/psa/admin/conf/templates/default/domain/nginxDomainVirtualHost.php and added a crude hack to add the missing header (Line 77 to) <?php echo str_replace("}",'proxy_set_header X-Forwarded-Proto $scheme; }',$VAR->domain->physicalHosting->nginxExtensionsConfigs); ?>
with this header e.g. openproject is working
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Confirm bug
 
Thank you! Bugreport has been confirmed and submitted as PPPM-10271
 
Back
Top