Feature #126
closedsupport for "serve-local" setting
Description
It would be useful to have another state for check-local, or a new setting serve-local. When this state/setting is on, lighttpd will check for a local copy of the file and serve that if it exists, else it will request it from fastcgi as normal.
This would be really handy for sitting in front of Zope and using lighttpd to serve the static images/css from its document root rather than handing it off to Zope.
Even better would be if lighttpd could be setup to cache things such as images from fastcgi automatically :) (depending on the headers which zope returns, etc).
Updated by jan almost 20 years ago
- Status changed from New to Fixed
- Resolution set to invalid
server.error-handler-404 can be used for this kind of setup.
If the request results in a 404, the error-handler will be called (e.g. zope) which can generate the file and serve it.
Also available in: Atom