Skip to content

Difference between apache and lighttpd x-sendfile backends #129

Open
@pkaczynski

Description

@pkaczynski

I think the documentation about x-sendfile for Apache and lighttpd has some wrong code imports, for example:

Then set django_downloadview.apache.XSendfileMiddleware as DOWNLOADVIEW_BACKEND:

END backend

Then, the code is a bit confusing. How is the lighttpd backend different than apache for x-sendfile? The code for django_downloadview.lighttpd.XSendfileMiddleware is quite identical to django_downloadview.apache.XSendfileMiddleware. Are there any other differences?

The reason I'm asking is that I tried to make media files private (i.e. accessible only by Djnago authenticated users) but accessed through lighttpd (like all static files, but static files are not "private") while Django is served by Apache with mod_wsgi. Is such configuration actually possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions