Closed rethna2 closed 6 years ago
What exactly do you want to happen, could you spell it out to me please?
Do you want one of the following or something else?
a request to http://localhost:8000
to return this response:
HTTP/1.1 301 Moved Permanently
Location: https://localhost:8000
a request to http://localhost:8000
to be transparently proxied by the server to https://localhost:8000
I want the second one. I am getting a 404, for http://localhost:8000. I want to redirect to 'https://localhost:8000'.
The second example i gave is not a redirect, it is a proxy. If you want to proxy, read this.
Yes. You are correct. Thanks for the help.
you're welcome
This simple server really works for me (spa and api proxy support) and many thanks to the developers and maintainers. Presently having it as below:
ws --spa index.html --rewrite '/api/* -> https://backendapi.com/api/$1' -p 8080
Is it possible to redirect 'http' to https'? I am not reporting it as issue, but just asking as question. Would really appreciate any answer.