Convert this .htaccess directive to nginx for me [closed]

<Files urllist.txt>
    order allow,deny
    Allow from xx.xx.91.29
</Files>

Answer

This will translate to following in nginx config:

location = /path/to/urllist.txt {
  allow xx.xx.91.29;
  deny all;
}

See documentation for location and allow directives.

Attribution
Source : Link , Question Author : natalis , Answer Author : AlexD

Leave a Comment