I only need to do this for one file (uptime.php) and it must be requested by using uptime.png.
Adding a rule for all png files in my config file would be suicide.. 😛
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In general, it does not need to be requested by using
uptime.png: you can use a.phpextension. As long as your script outputsas the MIME type, browsers will recognise the data as an image.
However, if you really must use
uptime.pngfor the URL, you can use a rewrite rule. For example:There is more information about these rewrite rules in the Lighttpd Docs::ModRewrite documentation.