How can i redireect from https to http?
i have the code below but it does not seem to work.
server {
listen 443;
server_name example.com;
rewrite ^(.*) http://example.com$1 permanent;
}
How can i redireect from https to http?
i have the code below but it does not seem to work.
server {
listen 443;
server_name example.com;
rewrite ^(.*) http://example.com$1 permanent;
}
Building off jberger's comment a configuration that should work would be:
The answer above will work, you need to generate a self signed cert (or have a real one) and configure nginx as such:
Keep in mind, if it is a self signed cert the browser will give you an ugly warning.