Copterfly / modwsgi

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

Allow options to WSGIScriptAlias directives mirroring appropriate directives. #89

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
As original mentioned in:

  http://code.google.com/p/modwsgi/issues/detail?id=71

allow options to WSGIScriptAlias directives for setting process group, 
application group etc. For 
example:

  WSGIScriptAlias /trac /some/path/trac.wsgi \
    callable-object=dispatch_request pass-authorization=On \
    process-group=site-1 application-group=%{GLOBAL}

This options if set would take precedence over any specific directives, such as 
WSGIProcessGroup 
applying to the application as set for server context, Directory or Location 
containers.

For the case of WSGIScriptAlias (not WSGIScriptAliasMatch), if process-group 
and application-
group are both supplied, the specified WSGI script file would be loaded when 
process starts.

Original issue reported on code.google.com by Graham.Dumpleton@gmail.com on 12 Jul 2008 at 1:20

GoogleCodeExporter commented 8 years ago
Change committed in revision 949 of trunk for mod_wsgi version 3.0.

Original comment by Graham.Dumpleton@gmail.com on 12 Jul 2008 at 1:23

GoogleCodeExporter commented 8 years ago

Original comment by Graham.Dumpleton@gmail.com on 12 Jul 2008 at 1:23

GoogleCodeExporter commented 8 years ago
Current code for this will try and preload directory as WSGI script file if 
target is a directory. Need to work how to 
cope with this and not do it.

Original comment by Graham.Dumpleton@gmail.com on 12 Jul 2008 at 1:38

GoogleCodeExporter commented 8 years ago
What it will do is log:

[Sat Jul 12 23:43:49 2008] [info] mod_wsgi (pid=24653, process='', 
application=''): Loading WSGI script 
'/usr/local/wsgi/scripts/'.

The load script code bails out at some point because it isn't a file, but 
WSGIImportScript code isn't logging an 
error. Not causing problems right now, but need to be investigated.

Original comment by Graham.Dumpleton@gmail.com on 12 Jul 2008 at 2:02

GoogleCodeExporter commented 8 years ago
Version 3.0 of mod_wsgi now released with these changes.

Original comment by Graham.Dumpleton@gmail.com on 22 Nov 2009 at 2:54