Question

I'm a newbie in the bug tracking system world.

I managed to install Trac 0.12 in Windows Server 2003 and was able to serve the project using IIS through an isapi_wsgi extension using the procedure found here: http://trac.edgewall.org/wiki/TracOnWindowsIisIsapi

I installed the Trac project in c:\Trac\Project1, generated the cgi-bin and htdocs directories and placed them in c:\Trac\Project1\.

Now I want to create other projects at the same level than Project1 (c:\Trac\Project2, c:\Trac\Project3 and so on).

How can I change the trac_wsgi.py and use URLs as follows: "http://localhost/Project1", "http://localhost/Project2", and so on?

I have basic experience with IIS and no experience at all with Python.

Any help would be appreciated.

Thanks

Was it helpful?

Solution

You've chosen what seems like a good installation instruction. If I understand correctly, your answer is already in the example given there:

# Setup the virtual directories - this is a list of directories our
# extension uses - in this case only 1.

So you'll want to register multiple virtual directories by copying the example with a list of directories like so (untested):

vd1 = VirtualDirParameters(Name="Project1",
                          Description = "ISAPI-WSGI Trac",
                          ScriptMaps = sm,
                          ScriptMapUpdate = "replace"
                          )
vd2 = VirtualDirParameters(Name="Project2",
                          Description = "ISAPI-WSGI Trac",
                          ScriptMaps = sm,
                          ScriptMapUpdate = "replace"
                          )
...
params.VirtualDirs = [vd1, vd2, ...]

I don't know, if you really want to get rid of the ENV_PARENT_DIR in the path. Would it hurt to have 'http://localhost/trac/Project1' instead of 'http://localhost/Project1'? This is the common and expected layout of a multiple projects Trac installation. Just my 2ct.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top