Skip to content

Better handling for SSL reverse proxy

Mario requested to merge master-100 into master

Created by: ghost

Hello Community,

As follow up for issue #98 (closed), I have created this patch to construct the server URLs reverse proxy/virtual host and SSL proxy proof. It relies on HTTP_HOST, which return the request host + port (in case it is a non standard port) instead of SERVER_NAME, which relies on the server configuration.

I have tested the following situations:

HTTP:80 (standard) http_80

HTTP:8080 (non-standard) http_8080

HTTPS:443 (standard) https_443

HTTPS:8080 (non-standard) https_8080

You can see at the stylesheet URLs that the hostnames + ports are set correctly.

Best Regards, Stefan

Merge request reports