2 messages in ru.sysoev.nginxRe: Rewrite problem with " "
FromSent OnAttachments
Malte SussdorffAug 22, 2007 10:00 am 
Igor SysoevAug 22, 2007 10:33 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Rewrite problem with " "Actions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Aug 22, 2007 10:33:42 am
List:ru.sysoev.nginx

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; }