-
Notifications
You must be signed in to change notification settings - Fork 7
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
How to run the Built-in PHP HTTP server? #61
Comments
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 The USERNAME=alice \
PASSWORD=alice123 \
ENVIRONMENT=development \
SERVER_ROOT=http://localhost:8080 \
php -S localhost:8080 -t web/ web/index.php The If you run the following (instead of 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 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:
The text was updated successfully, but these errors were encountered: