Welcome! Log In Create A New Profile

Advanced

Re: quick start on writing a module?

Maxim Dounin
June 16, 2010 01:32PM
Hello!

On Wed, Jun 16, 2010 at 06:47:29PM +0200, Piotr Sikora wrote:

[...]

> >This is caused by index module and only applies when uri ends with
> >'/'. Workarounds are obvious, but I doubt they are actually
> >needed in this particular case.
>
> Yes, my previous error message was produced by index module,
> but the issue exists and should be probably considered a bug:
>
> location / {
> set $file "/etc/passwd";
> alias $file;
> }
>
> "GET /aaa" results in:

[...]

> *4 open() "/etc/passwdaaa" failed (2: No such file or directory)"

No, it's not bug, it works as documented. Alias specifies full
path only in regexp locations (with captures). For normal locations
it specifies path to point matched by location (even if alias
contains variables).

Maxim Dounin

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

quick start on writing a module?

Mark Harrison June 16, 2010 05:34AM

Re: quick start on writing a module?

Maxim Dounin June 16, 2010 06:48AM

Re: quick start on writing a module?

Piotr Sikora June 16, 2010 11:20AM

Re: quick start on writing a module?

Maxim Dounin June 16, 2010 11:34AM

Re: quick start on writing a module?

Piotr Sikora June 16, 2010 11:54AM

Re: quick start on writing a module?

Maxim Dounin June 16, 2010 12:32PM

Re: quick start on writing a module?

Piotr Sikora June 16, 2010 12:52PM

Re: quick start on writing a module?

Maxim Dounin June 16, 2010 01:32PM

Re: quick start on writing a module?

Piotr Sikora June 16, 2010 01:52PM

Re: quick start on writing a module?

Piotr Sikora June 16, 2010 01:48PM

Re: quick start on writing a module?

agentzh June 16, 2010 10:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
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