ngx_http_secure_link_module after ngx_http_rewrite_module

xufengnju xufengnju at sina.com
Tue Nov 17 13:17:13 MSK 2009


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/fed24a27/attachment.html>


More information about the nginx mailing list