I cannot express my gratitude with words. You are marvelous. I've been
struggling a lot for three days.
the --include-file option and having a .conf file containing: LoadModule
xsendfile_module '${MOD_WSGI_MODULES_DIRECTORY}/mod_xsendfile.so’
did the work and server ran with no errors.
One thing though, I know the extra.conf file provided as the --include-file
argument containing LoadModule ... is processed. But in the httpd.conf
generated by runmodwsgi I saw nothing regarding xsendfile. Is that okay?
Regarding the similarity existed in the mechanism of files being served by
mod_wsgi in daemon mod and mod_xsendfile; I've been suggested to use the
latter since I could easily manage access controls with a django view. I
don't know weather it holds true for using mod_wsgi to server the files?
Thank you again.
On Tuesday, November 24, 2015 at 3:31:51 PM UTC+3:30, Amir Afianian wrote:
>
> Hi all.
>
> I'm a newbie in django and lately I've been trying to use apache as my
> django web server to test mod_xsendfile for a project. My environment: ubuntu
> 14.04, python 3.4, apache2, django 1.8, having mod_wsgi installed using
> pip. I also have downloaded and compiled mod_xsendfile on apache2
>
>
> I have several problems though:.
>
> Problem1: In the documentation provided at here
> <https://tn123.org/mod_xsendfile/> it states to set mod_xsendfile on and
> provide a path for it in the virtual host configuration; I searched and
> noticed the virtual host config takes place in a file named httpd.conf and
> in ubuntu 14.04 having apache2 installed it seems that the whole
> structures has changed so I found no such file.
>
> Problem2: I am using mod_wsgi-express for running my server and it
> performs all the configurations automatically. I have read the
> documentations in here <https://pypi.python.org/pypi/mod_wsgi> and here
> <http://blog.dscpl.com.au/2015/04/introducing-modwsgi-express.html> but I
> couldn't find in any of them being stated where the general configurations
> (apache configurations to be specific) are pulled from.
>
>
> *Long story short:* my question being: how can I enable mod_xsendfile
> considering my environment and the fact that I am using mod_wsgi-express
> which generates the configs automatically.
>
> *Note:*: I run the server using the following command: $python manage.py
> runmodwsgi
>
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.