+make(1) locking by flock(1)
[www.jankratochvil.net.git] / .htaccess
1 DirectoryIndex Index.html.pl
2
3 AddType text/html .shtml
4 AddHandler server-parsed .shtml
5 AddType "text/html; charset=us-ascii" .html
6 AddType "text/html; charset=us-ascii" .shtml
7 AddType "text/plain; charset=us-ascii" .txt
8 AddType "text/plain; charset=us-ascii" .asc
9 Options Indexes Includes FollowSymLinks
10 <FilesMatch "\.(gz|Z|bz|bz2|zip)$">
11         RemoveEncoding .gz .Z .bz .bz2 .zip
12         AddType application/x-gzip .gz
13         AddType application/x-compress .Z
14         AddType application/x-bzip .bz
15         AddType application/x-bzip2 .bz2
16         AddType application/zip .zip
17 </FilesMatch>
18
19 AddHandler cgi-script .cgi
20 IndexOptions NameWidth=*
21 AddType application/x-rpm .rpm
22 AddType application/x-nokia-9000-communicator-add-on-software .aos
23 <IfModule mod_php4.c>
24         php_flag short_open_tag off
25         php_flag magic_quotes_gpc off
26         php_flag magic_quotes_runtime off
27 </IfModule>
28
29 <Files "kocky">
30         RewriteEngine on
31         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?kocky/*(.*)$ http://kocky.vellum.cz/$2 [R=301] [L]
32 </Files>
33 <Files "4c">
34         RewriteEngine on
35         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?4c/*(.*)$ http://4c.jankratochvil.net/$2 [R=301] [L]
36 </Files>
37 <Files "cgi">
38         RewriteEngine on
39         #            $1                                                  $2$3    $4
40         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?cgi/viewcvs(/(.*))?([?].*)?$ http://cvs.jankratochvil.net/viewcvs/$3$4 [R=301] [L]
41         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?cgi/*(.*)$ http://www.jankratochvil.net/cgi-bin/$2 [R=301] [L]
42 </Files>
43 <Files "sw">
44         RewriteEngine on
45         RewriteRule ^(/home/short/www/www.jankratochvil.net/)?sw/*(.*)$ http://www.jankratochvil.net/project/ [R=301] [L]
46 </Files>
47
48 <IfDefine SSL>
49         <Files "*.pl">
50                 RewriteEngine on
51                 RewriteRule ^.*?/www[.]jankratochvil[.]net/(.*)$ http://localhost:7680/$1 [P]
52         </Files>
53 </IfDefine>
54 <IfDefine !SSL>
55         Options +ExecCGI
56 </IfDefine>