Skip to content
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

http connection redirects to https when https_only is set to false #154

Closed
sureshab opened this issue Aug 4, 2016 · 2 comments
Closed

Comments

@sureshab
Copy link
Member

sureshab commented Aug 4, 2016

Per default settings, 8000 is used as http port and 8001 is used as
https port.
case 1: https_only=true, was not able to browse with 8000 port, which is
as expected.
case 2: https_only=false, per my understanding, it should allow http
connections, but all the http requests are rerouted to https and 8001 port.

@pvital
Copy link
Contributor

pvital commented Aug 4, 2016

If https_only=false then 8000 should handle the connection and not redirect to 8001, IMO.

I guess the problem is in NGINX configuration, created by Wok start up process. It's redirecting port 8000 to 8001, even if https_only=false is set up.

@alinefm
Copy link
Member

alinefm commented Sep 8, 2016

@sureshab @pvital
The https_only option is to allow user disables the HTTP port which means only HTTPS will be up an running.
If you set it to False, the HTTP will be enabled but it will redirected to HTTPS by security matters.
If you set it to True, only HTTPS will be enabled, ie, :8000 will not work.

It is working as designed as I could confirm in the current master branch (8e5a84d)

@alinefm alinefm closed this as completed Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants