rewrite or internal redirection cycle

Roxis roxis at list.ru
Sun Jul 29 14:25:31 MSD 2007


On Sunday 29 July 2007, Igor Sysoev wrote:
> Could you show debug log ?

# config 1 (server level)
rewrite ^(/download/.*)/media/(.*)\..*$ $1/mp3/$2.mp3   last;
return  403;

# config 2 (server level)
rewrite ^(/download/.*)/media/(.*)\..*$ $1/mp3/$2.mp3   break;
return  403;

# config 3
location / {
    rewrite ^(/download/.*)/media/(.*)\..*$ $1/mp3/$2.mp3   last;
    return  403;
}

# config 4
location / {
    rewrite ^(/download/.*)/media/(.*)\..*$ $1/mp3/$2.mp3   break;
    return  403;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error.log.gz
Type: application/x-gzip
Size: 3748 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20070729/fb27e6ef/attachment.bin>


More information about the nginx mailing list