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