sankarNarayanan / modwsgi

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

Add the following content to http://code.google.com/p/modwsgi/wiki/IntegrationWithTrac #143

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi please add this as it is the only solution on windows with multiple
projects (WSGIProcessGroup and Daemon mode not supported on windows):

#TRAC site1
   WSGIScriptAlias /trac/site1
C:/installedApps/trac_sites/site1/apache/site1.wsgi
<Directory C:\installedApps\trac_sites\site1\apache>
--->SetEnv trac.env_path C:\installedApps\trac_sites\site1
--->WSGIApplicationGroup %{GLOBAL}
    Order deny,allow
    Allow from all
</Directory>
<Location /trac/site1>
   AuthBasicProvider ldap
   AuthType Basic
   AuthzLDAPAuthoritative on
   AuthName "trac server"
   AuthLDAPURL *****
   AuthLDAPBindDN ****
   AuthLDAPBindPassword ***
   require ldap-group ****
</Location>

#TRAC site2
   WSGIScriptAlias /trac/site2
C:/installedApps/trac_sites/site2/apache/site2.wsgi
<Directory C:\installedApps\trac_sites\site2\apache>
--->WSGIApplicationGroup %{GLOBAL}
--->SetEnv trac.env_path C:\installedApps\trac_sites\site2
    Order deny,allow
    Allow from all
</Directory>
<Location /trac/site2>
   AuthBasicProvider ldap
   AuthType Basic
   AuthzLDAPAuthoritative on
   AuthName "trac server"
   AuthLDAPURL *****
   AuthLDAPBindDN *****
   AuthLDAPBindPassword ****
   require ldap-group *****
</Location>

Original issue reported on code.google.com by nino.mar...@gmail.com on 30 Apr 2009 at 7:18

GoogleCodeExporter commented 8 years ago
This is not the only way of making multiple Trace sites work on Windows. The 
main way is actually to use TRAC_ENV_PARENT_DIR. The existing wiki page also 
already says that using WSGI environment variable approach 
can be used.

Do accept that there may not be an example configuration example in the wiki 
page, but don't see a need. The 
wiki documentation isn't intended to try and cover every single way that it 
could be configured. That isn't the job 
of the mod_wsgi documentation. If better deployment documentation is needed, it 
should be part of the Trac 
documentation.

Original comment by Graham.Dumpleton@gmail.com on 18 Nov 2009 at 6:29

GoogleCodeExporter commented 8 years ago
Did'nt know it was'nt the only way. I can't remember the full details, and I 
tried a
lot of things to get it going on windows. 

I just wanted to help, and give a little back. I don't care where the 
information
are, just as long as it's available. 

Original comment by nino.mar...@gmail.com on 18 Nov 2009 at 10:35