Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: how to block a particular URL in nginx

$
0
0
A little modification.

server {
port_in_redirect off;
server_tokens off;
if ($http_host$request_uri = 'example-xyz.com') {
return 403;
break;
}
listen 80;
}

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>