ngx_http_secure_link_module after ngx_http_rewrite_module
xufengnju
xufengnju at sina.com
Tue Nov 17 13:21:12 MSK 2009
Does it mean that ngx_http_secure_link_module can only handle the `raw` uri that in the format of 'GET /prefix/check-code/realfile' ?
2009-11-17
xufengnju
发件人: xufengnju
发送时间: 2009-11-17 18:17:04
收件人: nginx
抄送:
主题: ngx_http_secure_link_module after ngx_http_rewrite_module
Hi,
Can we make ngx_http_secure_link_module work after the url handled by ngx_http_rewrite_module ?
For example:
Original URL:
http://x.com/photo-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(32 bits)-real.jpg
I want after rewrite,it would become /photo/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(32 bits)/real.jpg where xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(32 bits) is the md5 checksum of real.jpg mixed with my secret key.
But it fails.
I noticed,proxy modules works well after the uri rewritten by Rewrite Module.
Can we make secure_link work too?
Also,
does ngx_http_request_t *r,r->unparsed_uri.data changed after the mod rewrite?
How can we get the uri rewritten by mod rewrite?
Thanks.
2009-11-17
xufengnju
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20091117/0fa812e9/attachment.html>
More information about the nginx
mailing list