Yeah i thought that would not be allowed for some reason.
Does anyone know a way you can execute a program via the echo module or
another way with the lua module ?
location ~* \.(jpg|png|jpeg|ico|gif|bmp)$ {
echo "$http_host$request_uri";
}
That should echo the url of the image then i just need to input that uri
into one of the command line tools to compress it.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,252064,252199#msg-252199
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx