Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Thanks.

share|improve this question
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.