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 #1

Updated by Chris topher over 7 years ago

  • Project changed from 24 to TYPO3 Core
  • TYPO3 Version set to 7
Actions #2

Updated by Benni Mack over 7 years ago

  • Status changed from New to Needs Feedback

Can you explain your setup?

You have a NGINX as proxy and then apache to listen on port 8080 to simulate SSL?

Actions #3

Updated by Riccardo De Contardi over 7 years ago

90 days without feedback > closing it.

If you think that this is the wrong decision or have more information to reproduce it, please reopen it or open a new issue with a reference to this one. Thank you!

Actions #4

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF