Edgewall Software

Changes between Version 5 and Version 6 of TracOnWindowsIis6


Ignore:
Timestamp:
Nov 2, 2004, 4:36:33 AM (20 years ago)
Author:
GeoffCant
Comment:

Added core.py fixes from bug tickets

Legend:

Unmodified
Added
Removed
Modified
  • TracOnWindowsIis6

    v5 v6  
    158158The TRAC_ENV line is important as IIS6 won't pass this environment variable to the script when it runs.
    159159
     16023a. Fix core.py
     161  In F:\Python23\Lib\site-packages\trac\core.py, change the real_cgi_start function where it says
     162{{{
     163    path_info = os.getenv('PATH_INFO')
     164}}}
     165  Change this to:
     166{{{
     167    path_info = os.getenv('PATH_INFO').replace(os.getenv('SCRIPT_NAME'),"")
     168}}}
     169
     170  In the redirect function on the Request class, change the first part of the method to read:
     171{{{
     172    def redirect(self, url):
     173        base_url = '%s://%s' % ("http", os.getenv('SERVER_NAME'))
     174        self.send_response(302)
     175        self.send_header('Location', base_url + url)
     176}}}
     177
    160178=== Configure Trac DB ===
    161179