* Added a couple others
[squirrelmail.git] / doc / README.russian_apache
CommitLineData
068acdf9 1HOW TO CONFIGURE SQUIRRELMAIL WITH RUSSIAN APACHE
8c086db6 2--------------------------------------------------
3
223bb718 4This text is available in Russian at
5http://www.mricon.com/SM/russian_apache.html
6
a48fbf9b 7*****
8NOTE: Russian Apache will recode all attachments, even if they
9are binary, thus corrupting them. To fix this problem, refer to
10Russian Apache FAQ: http://apache.lexa.ru/faq.html#5
068acdf9 11Turn multipart form recoding off in your apache config. If you
12don't, you're in for mucho trouble.
a48fbf9b 13*****
14
8c086db6 15This howto is for people who are using Russian Apache and
16who use charsets other than koi8-r for their source documents.
17If you _do_ use KOI8-R as default encoding for all your source
18documents, you don't need to do anything. Otherwise, here's
19a very simple way to make this work.
20
21The general idea is to tell Russian Apache that everything
22residing in the squirrel-mail directory is in koi8-r. This
23way all input submitted by users will be automagically
24converted by mod_charset from anything into koi8-r.
25Squirrel-Mail will then correctly stamp it with
26"Charset=koi8-r" and send off without any additional
27conversion.
28
29There are two equally efficient ways to do it:
30
31
321. THE HTTPD.CONF WAY.
33-----------------------
34
35In your httpd.conf, add the following declaration for the
36server that handles the squirrel-mail:
37
38<Directory /path/to/your/squirrel-mail>
39CharsetSourceEnc koi8-r
40</Directory>
41
42Warning: If you use CharsetByExtension elsewhere, it will
43override the CharsetSourceEnc directive. In that case you will
44have to put this directive instead of the above:
45
46<Directory /path/to/your/squirrel-mail>
47CharsetByExtension koi8-r .php
48</Directory>
49
50It is advised to use the CharsetSourceEnc declaration instead
51of the other one. Use the CharsetByExtension only if the
52other fails.
53
542. THE .HTACCESS WAY (PREFERRED).
55----------------------------------
56
57Create a .htaccess file in your squirrel-mail directory. In it,
58simply put this line:
59
60CharsetSourceEnc koi8-r
61
62That's it. Note the warning about the ChatsetByExtension directive
63in the previous section. If you used CharsetByExtension declaration
64elsewhere and it's active for this server, then you will have to
65put this line in your .htaccess instead:
66
67CharsetByExtension koi8-r .php
68
69But again, this is only if the CharsetSourceEnc fails.
70
71I mark this method "Preferred" simply because you don't have to
72restart your server if you use .htaccess. However, if you've
73specified "AllowOverride None" in your Server config, then you
74will have to go with "the httpd.conf way".
75
76
77If you have any questions or problems, please address them to
78the squirrelmail-list@lists.sourceforge.net to have them
79promptly answered. ;)
80
81--
82Konstantin Riabitsev (a.k.a. Graf)
83graf@relhum.org