Full pathname not sent

Francis Daly francis at daoine.org
Mon Mar 24 13:13:38 UTC 2014


On Sun, Mar 23, 2014 at 12:03:25PM -0400, Doc wrote:

Hi there,

> This might be more of a regex problem on my part than nginx.

Yes, it is.

> I do a 
> rewrite to pass the full pathname to thttpd like this:
> 
> location ~ /radio/download/.*\.mp3$ {
>     rewrite ^ /test/$1;
> }

What value do you want $1 to have?

What does nginx (and pretty much every regex tool) think $1 is?

You'll probably want () in there somewhere. Look for "capture" in
the manual.

Good luck with it,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list