• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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