Welcome! Log In Create A New Profile

Advanced

Re: Translating apache config to nginx

Grant
February 21, 2014 10:38AM
>> >> location ~ ^(?!installer)(\.?[^\.]+)$ {
>> >> deny all;
>> >> }
>
>> > Alternatively: what request do you make? What response do you expect? And
>> > what is the regex above intended to do?
>>
>> I actually got these apache deny directives from the roundcube list.
>
> Possibly the roundcube list will be able to explain, in words, what the
> intention is.
>
> Then someone may be able to translate those words into an nginx config
> fragment.


Here is the description:

"deny access to files not containing a dot or starting with a dot in
all locations except installer directory"

Should the following accomplish this in nginx? It gives me 403 during
normal operation.

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

- 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: 89
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