Changes between Version 7 and Version 8 of TracStandalone


Ignore:
Timestamp:
Sep 13, 2020, 5:05:14 PM (2 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracStandalone

    v7 v8  
    4646
    4747=== Option 1
    48 To install as a Windows service, get the [http://www.google.com/search?q=srvany.exe SRVANY] utility and run:
     48To install as a Windows service, get the [https://www.google.com/search?q=srvany.exe SRVANY] utility and run:
    4949{{{#!cmd
    5050 C:\path\to\instsrv.exe tracd C:\path\to\srvany.exe
     
    7777}}}
    7878
    79 For Windows 7 User, srvany.exe may not be an option, so you can use [http://www.google.com/search?q=winserv.exe WINSERV] utility and run:
     79For Windows 7 User, srvany.exe may not be an option, so you can use [https://www.google.com/search?q=winserv.exe WINSERV] utility and run:
    8080{{{#!cmd
    8181"C:\path\to\winserv.exe" install tracd -displayname "tracd" -start auto "C:\path\to\python.exe" c:\path\to\python\scripts\tracd.exe <your tracd parameters>"
     
    8585=== Option 2
    8686
    87 Use [http://trac-hacks.org/wiki/WindowsServiceScript WindowsServiceScript], available at [http://trac-hacks.org/ Trac Hacks]. Installs, removes, starts, stops, etc. your Trac service.
     87Use [https://trac-hacks.org/wiki/WindowsServiceScript WindowsServiceScript], available at [https://trac-hacks.org/ Trac Hacks]. Installs, removes, starts, stops, etc. your Trac service.
    8888
    8989=== Option 3
     
    171171=== Digest authentication: Using a htdigest password file
    172172
    173 If you have Apache available, you can use the htdigest command to generate the password file. Type 'htdigest' to get some usage instructions, or read [http://httpd.apache.org/docs/2.0/programs/htdigest.html this page] from the Apache manual to get precise instructions.  You'll be prompted for a password to enter for each user that you create.  For the name of the password file, you can use whatever you like, but if you use something like `users.htdigest` it will remind you what the file contains. As a suggestion, put it in your <projectname>/conf folder along with the [TracIni trac.ini] file.
     173If you have Apache available, you can use the htdigest command to generate the password file. Type 'htdigest' to get some usage instructions, or read [https://httpd.apache.org/docs/2.0/programs/htdigest.html this page] from the Apache manual to get precise instructions.  You'll be prompted for a password to enter for each user that you create.  For the name of the password file, you can use whatever you like, but if you use something like `users.htdigest` it will remind you what the file contains. As a suggestion, put it in your <projectname>/conf folder along with the [TracIni trac.ini] file.
    174174
    175175Note that you can start tracd without the `--auth` argument, but if you click on the ''Login'' link you will get an error.
     
    253253=== Serving static content
    254254
    255 If `tracd` is the only web server used for the project, 
    256 it can also be used to distribute static content 
     255If `tracd` is the only web server used for the project,
     256it can also be used to distribute static content
    257257(tarballs, Doxygen documentation, etc.)
    258258
     
    261261
    262262Example: given a `$TRAC_ENV/htdocs/software-0.1.tar.gz` file,
    263 the corresponding relative URL would be `/<project_name>/chrome/site/software-0.1.tar.gz`, 
     263the corresponding relative URL would be `/<project_name>/chrome/site/software-0.1.tar.gz`,
    264264which in turn can be written as `htdocs:software-0.1.tar.gz` (TracLinks syntax) or `[/<project_name>/chrome/site/software-0.1.tar.gz]` (relative link syntax).
    265265
     
    301301    implements(IAuthenticator)
    302302
    303     obey_remote_user_header = BoolOption('trac', 'obey_remote_user_header', 'false', 
    304                """Whether the 'Remote-User:' HTTP header is to be trusted for user logins 
    305                 (''since ??.??').""") 
     303    obey_remote_user_header = BoolOption('trac', 'obey_remote_user_header', 'false',
     304               """Whether the 'Remote-User:' HTTP header is to be trusted for user logins
     305                (''since ??.??').""")
    306306
    307307    def authenticate(self, req):
    308         if self.obey_remote_user_header and req.get_header('Remote-User'): 
    309             return req.get_header('Remote-User') 
     308        if self.obey_remote_user_header and req.get_header('Remote-User'):
     309            return req.get_header('Remote-User')
    310310        return None
    311311