T
T
TopGun892017-07-19 13:30:51
Nginx
TopGun89, 2017-07-19 13:30:51

Why does the "unknown directive map" error occur?

Hello. Continuing the topic - How to ban bots using nginx?
Today I implemented test settings for nginx
Made an include in nginx.conf - prntscr.com/fxk64x
Registered the rules for blocking bots in this way - https://pastebin.com/RA2FHBSZ
When I restarted nginx I got the following error - https://pastebin.com/3ufyndE7
How solve it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2017-07-20
@ruvasik

You have written what the error is) You
need the ngx_http_map_module module, most likely just a little old nginx.
Well, or replace with if's

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question