Edgewall Software

Ticket #692 (closed defect: wontfix)

Opened 4 years ago

Last modified 4 years ago

trac running on Microsoft IIS.

Reported by: josh_robb@… Owned by: jonas
Priority: normal Milestone: 0.8
Component: general Version: 0.7.1
Severity: blocker Keywords:
Cc: josh_robb@…

Description

Out of the box trac will not run on IIS as a CGI application. I have debuged the problem and the cause is that IIS uses a different format for it's PATH_INFO variable. PATH_INFO includes the script name and path. To work around this I have modified real_cgi_start in core.py as follows:

replace:

path_info = os.getenv('PATH_INFO')

with:

path_info = os.getenv('PATH_INFO').replace(os.getenv('SCRIPT_NAME'),"")

I'm not sure where/how the best place to make this change is.

j.

p.s. also - whats with logging on Windows? The Log file never gets written to.

Attachments

Change History

Changed 4 years ago by jonas

  • milestone set to 0.8

Changed 4 years ago by anonymous

  • cc josh_robb@… added

Changed 4 years ago by daniel

  • status changed from new to closed
  • resolution set to wontfix

I'd suggest writing a IIS-specific wrapper cgi as proposed in #693 for this.

Add/Change #692 (trac running on Microsoft IIS.)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from jonas. Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.