Marcus
Well-known member
I have redirected all traffic to https://domain.com but want to convert back to http. But the permanent redirects are in place for years, they are stored in all my users browsers. This is my former configuration:
This configuration is stored in my users browsers. So when i set a new configuration to redirect https to http, there is an infinitive loop redirect. Is creating a new subdomain (http://sub.domain.com) the only solution or can I go with http://domain.com which I very much prefer?
Code:
server
{
server_name domain.com;
listen 443 ssl spdy deferred;
root /usr/share/nginx/html;
[... the content is delivered here ...]
}
server
{
server_name domain.com;
listen 80;
return 301 https://domain.com$request_uri;
}
server
{
server_name www.domain.com;
return 301 https://domain.com$request_uri;
}