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

Restricting access

$
0
0
Just moved everything over from Apache. Trying to block a few individual IP addresses.

When add this to a server block:

location / {
deny 0.0.0.0;
}

Get the following error when restarting Nginx:

Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details.

Did not figure out what am doing wrong after using above commands.

Ideas as to what is being done improperly?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



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