Is there a way I could allow access to a directory only if certain custom header is present and the value matches? With apache, I've been doing it with SetEnvIf. How could I do it with nginx?
Basically I have a dev server that should be accessed only by me, but I have dynamic ip and have to change config file everyday. With apache, I just set my browser to send a custom header that acted like an access password and apache would allow access if that header value was correct.