• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Add XFP header within Docker extension nginx proxy

wilei

New Pleskian
Hi!

Is it possible to add XFP / X-Forwarded-Proto HTTP-header when nginx is doing proxying to the Docker container?

Now configuration sets just X-Real-IP and X-Forwarded-For headers, but no X-Forwarded-Proto header, and therefore the standard HTTP/HTTPS detections are not working at all.

The XFP header could be added by just adding the following line to Docker extension config in every location with proxy_pass:
Code:
proxy_set_header X-Forwarded-Proto $scheme;

Or is there some template to edit and add the line in it?

(I'm using Plesk 17.8.11 on Ubuntu 16.04.5 with Docker extension version 1.3.1-126)
 
Back
Top