Welcome! Log In Create A New Profile

Advanced

Re: Confused by documentation for /alias/

Boyko Yordanov
August 10, 2011 06:20AM
Hi,

Because of the $ symbol on the location line which marks 'end of line'. Remove the $ symbol and you'll have book.pdf/ working.

Boyko

On Aug 10, 2011, at 1:15 PM, graq wrote:

> Hi
>
> From: http://wiki.nginx.org/HttpCoreModule
>
> __BEGIN__
> For example:
>
> location ~ ^/download/(.*)$ {
> alias /home/website/files/$1;
> }
> The request "/download/book.pdf" will return the file
> "/home/website/files/book.pdf". Note again that only part of the request
> URI after the location is appended to the path defined by alias.
> ___END___
>
> Why doesn't this return the directory "home/website/files/book.pdf/" ?
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213617,213617#msg-213617

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

Confused by documentation for /alias/

graq August 10, 2011 06:15AM

Re: Confused by documentation for /alias/

Boyko Yordanov August 10, 2011 06:20AM

Re: Confused by documentation for /alias/

graq August 10, 2011 06:43AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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