Forum: Ruby on Rails url.rewrite on lighttpd

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Bogdan I. (Guest)
on 2006-05-03 20:58
(Received via mailing list)
I allow the users of my application to upload images on the server,
images
that are supposed to be used for some custom web pages.
However some evil ones decided that this feature gives them some storage
space that they could use for outside pages.

I would like to configure lighttpd.conf so that when images from certain
directories are accessed with a different referrer, I would pass a
banner of
my site instead.
Does anyone have a working example of something similar?
My attempts have failed, with lighttpd simply ignoring my rewrites.

Thanks,
Bogdan
This topic is locked and can not be replied to.