I need my “bad user agent” map not to block my rss xml file

lists at lazygranch.com lists at lazygranch.com
Wed Jan 9 03:30:44 UTC 2019


Stripping down the nginx.conf file:

server{
location / {
 root   /usr/share/nginx/html/mydomain/public_html;
        if ($badagent)     { return 403; }
}
location = /feeds {
        try_files $uri $uri.xml $uri/ ;
       }
}
The "=" should force an exact match, but the badagent map is checked.


More information about the nginx mailing list