Edgewall Software

Changes between Version 181 and Version 182 of TracOnWindows


Ignore:
Timestamp:
Aug 29, 2006, 4:45:09 AM (18 years ago)
Author:
mathewa1@…
Comment:

How to configure Trac CGI on Windows with a friendly URL

Legend:

Unmodified
Added
Removed
Modified
  • TracOnWindows

    v181 v182  
    344344
    345345<Directory "C:/Python23/share/trac/htdocs">
     346  Options Indexes MultiViews
     347  AllowOverride None
     348  Order allow,deny
     349  Allow from all
     350</Directory>
     351}}}
     352
     353  If you want to configure a friendly URL, like http://hostname/trac, the following configuration can be used
     354
     355{{{
     356# TRAC
     357# The directive below transfers the serving up of static content to Apache
     358Alias /trac/chrome/common "C:/Program Files/Python2.3.5/share/trac/htdocs"
     359
     360# Alias for the friendly URL
     361ScriptAlias /trac "C:/Program Files/Apache Group/Apache2/cgi-bin/trac.cgi"
     362<Location "/trac">
     363  SetEnv TRAC_ENV "c:/svn/repo_trac.db"
     364  SetEnv PYTHONPATH "C:/Program Files/Subversion/bin"
     365  # if you are running Apache as a user other than System, the TMP variable
     366  # needs to be set to a place where that user can write scratch files.  Make
     367  # sure that this directory is created and writable by that user.
     368  # SetEnv TMP "c:/svn/trac.db/tmp
     369</Location>
     370
     371# Restrict access to the login page
     372<Location "/trac/login">
     373  AuthType Basic
     374  AuthName "trac"
     375  AuthUserFile C:/svn/.htaccess
     376  Require valid-user
     377</Location>
     378
     379<Directory "C:/Program Files/Python2.3.5/share/trac/htdocs">
    346380  Options Indexes MultiViews
    347381  AllowOverride None