Welcome! Log In Create A New Profile

Advanced

remove redirect permanent

Posted by nitai 
remove redirect permanent
October 16, 2014 02:04PM
Hi all,

Setup Nginx and all is working fine. However, in my testing I did a:

if ($ssl_protocol = "") {
rewrite ^ http://$host$request_uri? permanent;
}

and hit some URL's. As configured all http requests were rewriten to https.

However, now I'm in need to remove this. I removed the line but any previously visited URL's that have been redirected to https still go to https.

I searched all over the net and some suggested to clear caches, but any browser cache refresh, even any cache removal on nginx, etc. doesn't work. As soon as I revert back to Apache it works again, so I'm guessing this is somewhere cached within nginx. However, I don't see where.

Any help greatly appreciated.

System:
Ubuntu 14.04
Nginx 1.4.6
Re: remove redirect permanent
October 21, 2014 09:48PM
Anyone? Thanks.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 136
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready