8000 HTTPS w/o FPM does not work as expected · Issue #89 · symfony-cli/symfony-cli · GitHub
[go: up one dir, main page]

Skip to content

HTTPS w/o FPM does not work as expected #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dbalabka opened this issue Feb 8, 2022 · 2 comments
Open

HTTPS w/o FPM does not work as expected #89

dbalabka opened this issue Feb 8, 2022 · 2 comments

Comments

@dbalabka
Copy link
dbalabka commented Feb 8, 2022

If there is no FPM available and an installed HTTPS certificate, Symfony server will proxy requests to the built-in PHP development server. It will lead to an infinite loop of redirects if HTTPS is required. The reason is assert(empty($_SERVER['HTTPS'])).

The simples workaround is to add a line into public/index.php:

$_SERVER['HTTPS'] = 'on';

Another solution is to use FPM. Unfortunately, the VSCode devcontainers does not provide FPM out-of-the-box (see microsoft/vscode-dev-containers#1296)

@kllmanu
Copy link
kllmanu commented Aug 11, 2024

I can confirm, either setting this variable or using fpm fixed the issue for me as well (using Contao).

@tucksaun
Copy link
Member
tucksaun commented Sep 9, 2024

are you running a non-Symfony application by any chance? if so please see discussion at #333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants
0