Nginx how to redirect from https to http when not support https anymore -


my site https, , removed certificates because don't need https anymore. need way redirect visitors http version because maybe have domain bookmarked https version. tried this:

server {       listen 443;       server_name example.com;       ssl on;       rewrite ^ http://$server_name$request_uri? permanent;  } 

but when trying go https://example.com it's stuck. doing wrong?


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -