Welcome! Log In Create A New Profile

Advanced

Translating apache config to nginx

Grant
February 19, 2014 08:36AM
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
Subject Author Posted

Translating apache config to nginx

Grant February 19, 2014 08:36AM

Re: Translating apache config to nginx

Francis Daly February 20, 2014 04:06AM

Re: Translating apache config to nginx

Grant February 20, 2014 09:00AM

Re: Translating apache config to nginx

Francis Daly February 20, 2014 03:26PM

Re: Translating apache config to nginx

Grant February 21, 2014 10:38AM

Re: Translating apache config to nginx

Francis Daly February 21, 2014 03:26PM

Re: Translating apache config to nginx

Grant February 21, 2014 04:52PM

Re: Translating apache config to nginx

Jonathan Matthews February 21, 2014 08:02PM

Re: Translating apache config to nginx

Grant February 21, 2014 09:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 209
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready