Nginx
Nginx all http to https
Edit config
1
error_page 497 https://XXXXX$request_uri;