Project

General

Profile

Actions

Bug #80148

closed

SetEnv HTTPS on breaks host header

Added by Jonny Schulz over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-03-06
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi together,

how can it be that SetEnv HTTPS on in apache breaks the host header in Typo3?

Example configuration:

Nginx:
listen 443 ssl;
proxy_set_header Host www.example.net;
proxy_pass http://$backend:8080;

Now if I configure Apache without SetEnv HTTPS on, then I'm able to browse to https://www.example.net/typo3, I'm able to login and if I replace http with https - typo3 redirects to http - all works fine. The next step is to configure SetEnv HTTPS on in Apache, but Typo3 says after that: "The current host header value does not match the configured trusted hosts pattern!". If I de-configure SetEnv HTTPS on all works fine again with the exception that http is used.

How can it be that the variable HTTPS on breaks the host header?

Regards
Jonny

Actions

Also available in: Atom PDF