close
Warning:
Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.
- Timestamp:
-
2021-07-11T14:17:48-07:00 (3 years ago)
- Author:
-
trac
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v5
|
v6
|
|
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. |
… |
… |
|
208 | 208 | [--protocol {http,https,scgi,ajp,fcgi}] [--certfile CERTFILE] |
209 | 209 | [--keyfile KEYFILE] [-q] [--base-path BASE_PATH] |
210 | | [--http10 | --http11] [-r | -d] [--pidfile PIDFILE] |
211 | | [--umask MASK] [--group GROUP] [--user USER] |
212 | | [envs [envs ...]] |
| 210 | [--http10 | --http11] [-r | -d] [--pidfile PIDFILE] [--umask MASK] |
| 211 | [--group GROUP] [--user USER] |
| 212 | [envs ...] |
213 | 213 | |
214 | 214 | positional arguments: |
… |
… |
|
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 | |