| 32 | Or for windows systems: |
| 33 | {{{ |
| 34 | RewriteEngine on |
| 35 | RewriteRule ^/projects/+$ /projects/index.html [L] |
| 36 | #RewriteCond /var/lib/trac/$1 -d |
| 37 | RewriteCond d:/svn/$1.db -d |
| 38 | RewriteRule ^/projects/([[:alnum:]]+)(/?.*) /projects/trac.cgi$2 [S=1,E=TRAC_ENV:d:/svn/$1.db] |
| 39 | RewriteRule ^/projects/(.*) /projects/index.html |
| 40 | |
| 41 | <Directory "C:\Program Files\Apache Group\Apache2\htdocs\projects"> |
| 42 | AllowOverride None |
| 43 | Options ExecCGI -MultiViews +SymLinksIfOwnerMatch |
| 44 | AddHandler cgi-script .cgi |
| 45 | Order allow,deny |
| 46 | Allow from all |
| 47 | </Directory> |
| 48 | |
| 49 | <LocationMatch "/projects/[[:alnum:]]+/login"> |
| 50 | AuthType Basic |
| 51 | AuthName "trac" |
| 52 | AuthUserFile D:/svn/.htaccess |
| 53 | Require valid-user |
| 54 | </LocationMatch> |
| 55 | }}} |
| 56 | |