Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

Multiple Tracs -> Browse Source -> Error

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


kamin at embedded

Nov 27, 2009, 4:24 AM

Post #1 of 2 (247 views)
Permalink
Multiple Tracs -> Browse Source -> Error

Hello!

On our test-machine, we run two trac environments that are included as follows in our Apache httpd.conf

LoadModule wsgi_module modules/mod_wsgi-win32-ap22py26-3.0c5.so
LoadModule sspi_auth_module modules/mod_auth_sspi.so

WSGIScriptAlias /test "D:/trac/test/cgi-bin/trac.wsgi"
<Directory "D:/trac/test/cgi-bin">
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>

<Location /test/login>
AuthType SSPI
AuthName "Test Login"
SSPIAuth On
SSPIAuthoritative On
SSPIDomain IXI
SSPIOfferBasic On
SSPIOmitDomain On
SSPIBasicPreferred On
Require valid-user
# Require group "IXI\\mc_square"
</Location>

WSGIScriptAlias /mc_square "D:/trac/mc_square/cgi-bin/trac.wsgi"
<Directory "D:/trac/mc_square/cgi-bin">
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>

<Location /mc_square/login>
AuthType SSPI
AuthName "[mc]square Trac Login"
SSPIAuth On
SSPIAuthoritative On
SSPIDomain IXI
SSPIOfferBasic On
SSPIOmitDomain On
SSPIBasicPreferred On
Require valid-user
# Require group "IXI\\mc_square"
</Location>

Both run just fine until I click on browse source in mc_square, then I reach the other environment (and repository) and regardless of what I do I keep reaching that one even when closing the browser (which kills all cookies, etc.) and reopening the correct URL. This seems somewhat strange. Can anyone help me with that? For now I disabled the test environment by out-commenting it and restarted the Apache, which solved the problem.

Best regards,
Volker

P.S.: the WSGI files are:

import sys
sys.stdout = sys.stderr

import os
os.environ['TRAC_ENV'] = 'D:/trac/mc_square'
os.environ['PYTHON_EGG_CACHE'] = 'D:/trac/mc_square/eggs'

import trac.web.main

application = trac.web.main.dispatch_request

and

import sys
sys.stdout = sys.stderr

import os
os.environ['TRAC_ENV'] = 'D:/trac/test'
os.environ['PYTHON_EGG_CACHE'] = 'D:/trac/test/eggs'

import trac.web.main

application = trac.web.main.dispatch_request

--
Dipl.-Inform. Volker Kamin

RWTH Aachen University
Embedded Software Laboratory
Ahornstr. 55
52074 Aachen

fon: +49 241 80 21157
fax: +49 241 80 22150
web: http://www.embedded.rwth-aachen.de/

--

You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.


mark.cooke at siemens

Nov 30, 2009, 1:43 AM

Post #2 of 2 (229 views)
Permalink
RE: Multiple Tracs -> Browse Source -> Error [In reply to]

>
> On our test-machine, we run two trac environments that are
> included as follows in our Apache httpd.conf
>
<snip>
>
> P.S.: the WSGI files are:
>
> import sys
> sys.stdout = sys.stderr
>
> import os
> os.environ['TRAC_ENV'] = 'D:/trac/mc_square'
> os.environ['PYTHON_EGG_CACHE'] = 'D:/trac/mc_square/eggs'
>
> import trac.web.main
>
> application = trac.web.main.dispatch_request
>
> and
>
> import sys
> sys.stdout = sys.stderr
>
> import os
> os.environ['TRAC_ENV'] = 'D:/trac/test'
> os.environ['PYTHON_EGG_CACHE'] = 'D:/trac/test/eggs'
>
> import trac.web.main
>
> application = trac.web.main.dispatch_request
>

You are trying to set different values for variables in os.environ[]
into one interpreter ~ remember you are setting:

> WSGIApplicationGroup %{GLOBAL}

...for both directories, then trying to change the environment for each.
This has been covered before (look for posts by Graham Dumpleton). You
will probably have trouble with the different egg caches too.

Why not just use Trac's support for an environment parent directory?

~ Mark C

P.S. I am assuming that each environment's trac.ini points to the
correct repository...

--

You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users [at] googlegroups
To unsubscribe from this group, send email to trac-users+unsubscribe [at] googlegroups
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en.

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.