Is it possible to do a rewrite rule in nginx to rewrite to another location on the server, outside of the current account?
For example, I want to rewrite image123.jpg
to location on the server /dev/shm/123.jpg
. Is this possible?
I could grab the image with a PHP script and rewrite to that, but I'd rather it was done more efficiently.
是的,这是可能的:看看别名 -directive
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.