On Friday, March 25, 2011 11:43:39 PM UTC+11, Pascal Germroth wrote:
>
> On Fri, 2011-03-25 at 12:55 +0100, Łukasz Rekucki wrote:
> > On 25 March 2011 12:34, Thomas Guettler <h...@tbz-pariv.de> wrote:
> > > I look at your example code. You need to name the webserver in the
> > > code. That's not very nice. I guess it should be possible to
> > > guess the webserver (apache vs nginx) by looking at request.META.
> > >
> > 
> > -1 on guessing anything, especially something that doesn't change.
> > Also, a fairly common configuration is Apache behind an nginx proxy.
> > In this setup, I want nginx will be the one serving static files, not
> > Apache.
>
> Why guess in the first place? Apache and Nginx both support 'X-Sendfile:
> <absolute path>' don't they? (older nginx seemed to only support their
> own syntax, though).
>
Apache requires a separate module to be installed which isn't part of the 
core, so no you can't rely on it being present.

Graham

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to