On 7/13/06, Wei Litao <[EMAIL PROTECTED]> wrote: > > I already have lots of static files in my lighttpd web server, so I'd > like it to only talk to the django server if it can't find what it's > looking for. So I'd like use error-handler-404 directive to do that > thing. > In django official document, it use url-write method to talk to django > server. Is is possible to > hack that script to use error-handler-404? >
I'm not familiar with using lighttpd, but I know that if that was done is Apache (and it is fairly easy to do), it is frowned upon as it causes each request to add to the error logs. Imagine trying to find/debug a real problem in a high traffic site in that situation. The Apache solution is to use conditional statments to only use the rewrite rules if the requested file/directory/etc does not already exist in the file system. You may want to check with lighttpd for a similar feature. When you find a solution, feel free to post back here for others benefit. -- ---- Waylan Limberg [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---