Blocking all the URL except 1

Zeal Vora zeal at freecharge.com
Thu Jun 23 16:47:43 UTC 2016


Hi

We have a Nginx Box which acts as a reverse proxy to backend applications.

We only want to allow traffic on http://example.com which internally
redirects to specific application. Other then that, every other URI should
be blocked.

For example :-

example.com            Allowed
example.com/test     Blocked
example.com/login    Blocked

How can I achieve this ?

Any help will be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160623/702bdf20/attachment.html>


More information about the nginx mailing list