Welcome! Log In Create A New Profile

Advanced

Re: Translating apache config to nginx

Francis Daly
February 20, 2014 04:06AM
On Wed, Feb 19, 2014 at 05:35:46AM -0800, Grant wrote:

Hi there,

> The following seems to work fine:
>
> location ~ ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps))
> {
> deny all;
> }

That's probably work until you add "location ^~ /oops{}" and request
/oops/a.git

Not a problem; just a thing to be aware of when you use top-level regex
locations.

> But this causes a 403 during normal operation:
>
> location ~ ^(?!installer)(\.?[^\.]+)$ {
> deny all;
> }
>
> Why is that happening?

What requests do you want to match that location?

What requests actually match that location?

Alternatively: what request do you make? What response do you expect? And
what is the regex above intended to do?

Cheers,

f
--
Francis Daly francis@daoine.org

_______________________________________________
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: 239
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