Open phochste opened 2 years ago
This happens both with the current code in the main branch and in the v0.6.2 release.
Thank you for taking the time to report this!
The Solid Server must run on HTTPS according to the spec, but under certain conditions (for instance in development or when behind a proxy) this is not feasible. To make HTTP mode more explicit, the environment flag was changed from ENVIRONMENT
to PROXY_MODE
in 58110bfd (part of v0.6.0). It looks like the command in the composer.json
was not updated to reflect this change.
The composer serve-dev
command is basically a simple wrapper for this command:
USERNAME=alice \
PASSWORD=alice123 \
ENVIRONMENT=development \
SERVER_ROOT=http://localhost:8080 \
php -S localhost:8080 -t web/ web/index.php
The PROXY_MODE
variable should be present but apparently it is not. 😥
If you run the following (instead of composer serve-dev
) things should work as expected:
USERNAME=alice \
PASSWORD=alice123 \
PROXY_MODE=true \
SERVER_ROOT=http://127.0.0.1:8080 \
php -S 127.0.0.1:8080 -t web/ web/index.php
(If you want to see debug information ENVIRONMENT=development
should also be added).
Beside this, it looks like the code responsible for the HTTP to HTTPS redirect is incorrect. The code should "just redirect" instead of triggering that warning.
I'll create a separate ticket for that.
Thanks that works for me!
I'm trying to run php-solid-server without the Docker image by running:
Browsing to
http://127.0.0.1:8080
I get this error below. Any hints what I should do?My installation is OSX: