Open mumingv opened 1 year ago
You should use http://yourdomainname.com/ping. this package is used for redirect http request to https and meanwhile force you to use the domain configured to access. For use locally, you can edit your hosts
, resolving domain name you like to localhost. As for server, you should buy several domain name that resolved to your IP and configure it in autotls.
main.go:
After running the main.go,I typed https://localhost:443/ping in browser, I just get "ERR_SSL_PROTOCOL_ERROR" wrong message.
And the console shows the error messages as below:
I don't know what happens. Who can tell me why?