Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

About a week ago, I was playing with nginx rewrite stuff to rewrite /admin to https.

I now want to undo this, but I cannot for the life of me, remember where I put that rewrite rule.

I've reloaded, restarted, stopped and started nginx. I've rebooted the server. I've restored nginx.conf to the default version.

I have no idea where I put that rule. It's either there, or nginx is just confused, because when I go to [domain]/admin, it redirects to https://[domain]/admin

I might end up purging nginx from the system and installing from scratch.

Is there anywhere else that a rewrite might be put? Any suggestions?


share|improve this question
up vote 0 down vote accepted

Perhaps you could provide your actual configuration file? You want to look for the include directive as that's the only way any directive can be "hidden".

Of course, far more likely is that your browser is caching and you've actually already removed the rewrite. Try to test the URL with curl and see if a location header is present, if not then it's browser caching.

share|improve this answer
Ahh. It was the cache. Thanks. – Dane Larsen Aug 31 '10 at 2:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.