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