+Forgotten "viewcvs" CGI execution.
[cvs.jankratochvil.net.git] / .htaccess
1 <IfModule mod_dir.c>
2         DirectoryIndex _NOTEXISTS
3 </IfModule>
4
5 Options None
6 <IfModule !mod_perl.c>
7         # Prevent: Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden
8         Options +SymLinksIfOwnerMatch
9 </IfModule>
10
11 <IfModule mod_rewrite.c>
12         # Do not: [R=301] [L]
13         # as any non-1st brackets' contents would get ignored!
14         # Use always suffix: ?${unescape:%{QUERY_STRING}}
15         # as $QUERY_STRING gets otherwise double-escaped (or if "NE" the path gets unescaped).
16         # FIXME: Should be applied also for the "P" rules?
17         # WARNING: Requires server/virtualhost definition: RewriteMap unescape int:unescape
18         <IfModule !mod_perl.c>
19                 RewriteEngine on
20                 RewriteRule ^favicon[.]ico$ /My/Status.pm?code=404 [P,L]
21                 RewriteRule ^(My)(|/.*)$ http://www.jankratochvil.net/$1$2?${unescape:%{QUERY_STRING}} [R=301,L]
22                 RewriteRule ^/*IndexCVS[.]pm$ /?${unescape:%{QUERY_STRING}} [R=301,L]
23                 RewriteRule ^/*$ http://localhost:7680/IndexCVS.pm [P,L]
24         </IfModule>
25 </IfModule>
26
27 <IfModule !mod_perl.c>
28         <Files "viewcvs">
29                 Options +ExecCGI
30                 SetHandler cgi-script
31         </Files>
32 </IfModule>