Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Translating apache config to nginx (no replies)

$
0
0
Roundcube uses some apache config to deny access to certain locations
and I'm trying to translate them to nginx. The following seems to
work fine:

location ~ ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps))
{
deny all;
}

location ~ /?(README\.md|composer\.json-dist|composer\.json|package\.xml)$ {
deny all;
}

But this causes a 403 during normal operation:

location ~ ^(?!installer)(\.?[^\.]+)$ {
deny all;
}

Why is that happening?

- Grant

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>