Welcome! Log In Create A New Profile

Advanced

Re: nginx.conf

December 16, 2016 01:05AM
xstation Wrote:
-------------------------------------------------------
> eneted this in the conf file under http
>
> SetEnvIfNoCase User-Agent "^Baiduspider" block_bot
> Order Allow,Deny
> Allow from All
> Deny from env=block_bot
>
>
> but on restart got a error message
>
> Job for nginx.service failed. See 'systemctl status nginx.service' and
> 'journalctl -xn' for details.
> root@mail:~#

That is an config for Apache web server on Nginx you want to do this. Put inside location {} or server {}

if ($http_user_agent ~ "^Baiduspider") {
return 403;
}

http://www.networkflare.com/
Subject Author Posted

nginx.conf

xstation December 16, 2016 12:57AM

Re: nginx.conf

c0nw0nk December 16, 2016 01:05AM

Re: nginx.conf

xstation December 16, 2016 01:17AM

Re: nginx.conf

xstation December 16, 2016 01:34AM

Re: nginx.conf

c0nw0nk December 16, 2016 01:55AM

Re: nginx.conf

xstation December 16, 2016 03:45AM

Re: nginx.conf

gariac December 16, 2016 02:02AM

Re: nginx.conf

gariac December 16, 2016 04:40AM

Re: nginx.conf

xstation December 17, 2016 08:21AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 85
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready