Welcome! Log In Create A New Profile

Advanced

Restricting access

Posted by schnappi 
Restricting access
July 19, 2016 03:59PM
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?



Edited 1 time(s). Last edit at 07/19/2016 04:00PM by schnappi.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 211
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready