[prev in list] [next in list] [prev in thread] [next in thread]
List: nginx
Subject: Re: Rewrite problem with " "
From: Igor Sysoev <is () rambler-co ! ru>
Date: 2007-08-22 17:34:05
Message-ID: 20070822173405.GD69116 () rambler-co ! ru
[Download RAW message or body]
On Wed, Aug 22, 2007 at 06:00:33PM +0100, Malte Sussdorff wrote:
> Sorry for this newbie question:
>
> I need to rewrite /photos/%20/robots.txt to /robots.txt (and
> robots.txt is just an example). I tried it many ways, the latest was:
>
> location /photos/%20/ {
> rewrite ^/photos/%20/(.*)$ /$1 break;
> }
>
> What am I missing here? is the %20 which marks a space a problem ?
nginx tests location in unescaped form.
location = "/photos/ /robots.txt" {
alias /path/to/robots.txt;
}
--
Igor Sysoev
http://sysoev.ru/en/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic