Changes between Version 7 and Version 8 of TracStandalone
- Timestamp:
- Sep 13, 2020, 5:05:14 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracStandalone
v7 v8 46 46 47 47 === Option 1 48 To install as a Windows service, get the [http ://www.google.com/search?q=srvany.exe SRVANY] utility and run:48 To install as a Windows service, get the [https://www.google.com/search?q=srvany.exe SRVANY] utility and run: 49 49 {{{#!cmd 50 50 C:\path\to\instsrv.exe tracd C:\path\to\srvany.exe … … 77 77 }}} 78 78 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:79 For 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: 80 80 {{{#!cmd 81 81 "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>" … … 85 85 === Option 2 86 86 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.87 Use [https://trac-hacks.org/wiki/WindowsServiceScript WindowsServiceScript], available at [https://trac-hacks.org/ Trac Hacks]. Installs, removes, starts, stops, etc. your Trac service. 88 88 89 89 === Option 3 … … 171 171 === Digest authentication: Using a htdigest password file 172 172 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.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 [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. 174 174 175 175 Note that you can start tracd without the `--auth` argument, but if you click on the ''Login'' link you will get an error. … … 253 253 === Serving static content 254 254 255 If `tracd` is the only web server used for the project, 256 it can also be used to distribute static content 255 If `tracd` is the only web server used for the project, 256 it can also be used to distribute static content 257 257 (tarballs, Doxygen documentation, etc.) 258 258 … … 261 261 262 262 Example: 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`, 263 the corresponding relative URL would be `/<project_name>/chrome/site/software-0.1.tar.gz`, 264 264 which 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). 265 265 … … 301 301 implements(IAuthenticator) 302 302 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 ??.??').""") 306 306 307 307 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') 310 310 return None 311 311