Full pathname not sent
Doc
icantthinkofone at charter.net
Mon Mar 24 14:19:20 UTC 2014
On Mon, Mar 24, 2014 at 8:13 AM, Francis Daly wrote:
> 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
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
Like a lot of people, I forget my regex bearings but I now have this
working to an extent. I just need to think about this some more. As a
sole developer, I have too many different things going on at the same
time.
More information about the nginx
mailing list