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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -