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

php - Autoloader issue not returning Class -

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

C++ Program To Find Smallest and Largest Number In Array -