ramkrishanbhatt / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

Putting WSGIProcessGroup in <directory> fails to set the process group properly... #101

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If I put:

    WSGIDaemonProcess schooltool user=schooltool group=schooltool
maximum-requests=10000 python-path=/usr/lib/python2.5/site-packages
    WSGIScriptAlias /schooltool /home/ignas/schooltool.wsgi

    <Directory /schooltool >

        WSGIProcessGroup schooltool
        WSGIApplicationGroup %{GLOBAL}
        Order deny,allow
        Allow from all
        WSGIPassAuthorization On

    </Directory>

In my VirtualHost section, the application gets started as www-data (the
default user)

While if I do:

    WSGIDaemonProcess schooltool user=schooltool group=schooltool
maximum-requests=10000 python-path=/usr/lib/python2.5/site-packages
    WSGIProcessGroup schooltool # moved from <Directory>
    WSGIScriptAlias /schooltool /home/ignas/schooltool.wsgi

    <Directory /schooltool >

        WSGIApplicationGroup %{GLOBAL}
        Order deny,allow
        Allow from all
        WSGIPassAuthorization On

    </Directory>

Everything starts working properly...

Original issue reported on code.google.com by ignas.mi...@gmail.com on 26 Aug 2008 at 2:18

GoogleCodeExporter commented 8 years ago
You should be using:

    <Directory /home/ignas>

        WSGIProcessGroup schooltool
        WSGIApplicationGroup %{GLOBAL}
        Order deny,allow
        Allow from all
        WSGIPassAuthorization On

    </Directory>

That is, use '/home/ignas' as argument to <Directory> directive. This is 
because <DIrectory> directive 
expects a file system path. The equivalent for URL is <Location> directive.

You might read up at:

  http://httpd.apache.org/docs/2.2/mod/core.html#directory
  http://httpd.apache.org/docs/2.2/mod/core.html#location

what the difference between the two is.

Original comment by Graham.Dumpleton@gmail.com on 26 Aug 2008 at 11:22