configuration - NGINX Redirect without rewriting the url excluding IP and directory -
we've got page put on our website when take down maintenance or updates. basic pseudocode logic looks this:
if ip != 72.56.43.212 , location !~ /down display down/
it's important url remain intact. example,
address bar: http://www.example.com/abcd.html page shown: http://www.example.com/down
i'm still pretty new nginx configuration. appreciated.
never tried self before, can use nginx access rules this
error_page 403 http://example.com/down.html; location / { allow 72.56.43.212; deny all; }
Comments
Post a Comment