http-server
http-server copied to clipboard
SLL mode does not serve HTTP request
Hi,
I would like to know how can I redirect all my http requests to https.
Now I start my server like this:
http-server -a 0.0.0.0 --cert self-signed.crt --key self-signed.key -d false -p 4041 -c-1 --ssl
The log:
Starting up http-server, serving ./ through https Available on: https://127.0.0.1:4041 https://192.168.0.25:4041 https://10.0.0.1:4041 Hit CTRL-C to stop the server
I routing works on https:// URLs but not on http:// URLs. How can I automatically redirect all http:// URLs to https:// URLs.
Do I need to use NGINX or is there something I can do with http-server configuration?
Thank you for great development. Olivier
@BigBlueHat @Qism0 Do we already have this option in http-server? or some pending PR's which I can try.
I wanted to redirect http://127.0.0.1:8080 to https://127.0.0.1:80443
Thanks in advance for you suggestion.
Same issue encountered.
+1
This issue has been inactive for 180 days