RU/2: Форум. Общение пользователей и разработчиков OS/2 (eCS). : Ответить на сообщение
Имя:
e-mail:
FIDO:
Home page:
сохранить данные о вас
Тема:
> > Дополнение. Проблема оказалась хуже, чем предполагалось. html файлы не зависимо от наличия PHP кода обрабатываются неправильно. Кто виноват и что делать? > В чем проявляется неправильность ? > > Еще посмотри ### Section 4: Russian Apache (mod_charset) tuning > > в частности - где-то здесь правилось на предмет перекодировки > > <IfModule mod_charset.c> > # Select charset codepages > # Format: CharsetDecl charset_name lang [flags > CharsetDecl ISO-8859-5 ru > CharsetDecl ibm866 ru > CharsetDecl windows-1251 ru > CharsetDecl koi8-r ru > > > #CharsetRecodeTable charset1 charset2 table1-2 [table2-1] > CharsetRecodeTable koi8-r ISO-8859-5 conf/tables/cyrillic/koi-iso.tab conf/tables/cyrillic/iso-koi.tab > CharsetRecodeTable koi8-r ibm866 conf/tables/cyrillic/koi-dos.tab conf/tables/cyrillic/dos-koi.tab > CharsetRecodeTable koi8-r windows-1251 conf/tables/cyrillic/koi-win.tab conf/tables/cyrillic/win-koi.tab > > # Recoding rules for windows-1251 source encoding > CharsetRecodeTable windows-1251 ISO-8859-5 conf/tables/cyrillic/win-iso.tab conf/tables/cyrillic/iso-win.tab > CharsetRecodeTable windows-1251 ibm866 conf/tables/cyrillic/win-dos.tab conf/tables/cyrillic/dos-win.tab > > #### DO NOT FORGET TO ADD CharsetRecodeTable directives if your > #### html files are stored on disk in different (neither koi8-r nor > #### windows-1251) encodings. Server MUST know all possible > #### Client<->file translations > > > > # Aliases of charsets > # Format: CharsetAlias real_name alias1 alias2 alias3 ... > CharsetAlias ISO-8859-5 iso_8859-5:1988 iso-ir-144 iso_8859-5 cyrillic > CharsetAlias ISO-8859-5 iso8859-5 iso-8859.5 iso8859.5 iso > CharsetAlias ibm866 csibm866 866 cp866 x-cp866 x-ibm866 cp-866 alt > CharsetAlias windows-1251 win x-cp1251 cp1251 cp-1251 > CharsetAlias koi8-r koi-8-r koi8 koi-8 koi > > # Priority of charsets > CharsetPriority koi8-r windows-1251 ISO-8859-5 ibm866 x-mac-cyrillic > > # default charset for real or virtual server (selected if all other charset- > # selectons methods fails) > CharsetDefault koi8-r > > #Default source (on-disk) charset > CharsetSourceEnc koi8-r > > # Order in which charset selection rules applied > #CharsetSelectionOrder Portnumber Hostname UriHostname EnvVariable Dirprefix Useragent > > # Associate file (on-disk) charset with extension > CharsetByExtension windows-1251 .htm .plw > > # Strip <META HTTP-EQUIV ...> from this extension (NOTE! this is mutually > # exclusive with SSI and other non-default file processing) > AddHandler strip-meta-http .htm .html > > #Select substrings for different clients identification and charsets for > # each charset > # No CharsetAgent directives - no User-Agent charset selection on server > CharsetAgent windows-1251 AIR_Mosaic IWENG/1 MSIE WinMosaic (Windows (WinNT; > CharsetAgent windows-1251 (Win16; (Win95; (Win98; (16-bit) Opera/3.0 > CharsetAgent koi8-r Arena Ariadna OmniWeb Sextant PRD (X11 Lynx/ > CharsetAgent ibm866 DosLynx Lynx2/OS/2 > > # Agents that can't understand MIME > CharsetBadAgent arena Lynx/2.0 Lynx/2.1 Lynx/2.2 Lynx/2.3 Lynx/2.4 "MSIE 2.0;" Lynx2/OS/2 > > > # Uncomment this if server must reject queries with illegal charset > #CharsetErrReject on > > # Add charset= to Content-Type in all replies - default > CharsetUseMultiViews off > > # Uncomment, if you want to recode response headers (turned off by > # default for compatibility with older versions) > # CharsetRecodeHeaders on > > # Comment out, if you want to recode filenames. Not recommended > #CharsetRecodeFilenames Off > > # CharsetDisable directive turns off all charset processing. > # Sample: > # <Directory /some/where/sub/dir> > # CharsetDisable on > # </Directory> > > # Charset Selection by portnumber > # do not forget to COMMENT OUT ALL Port directive above > # Listen 80 > # Listen 8100 > # Listen 8101 > # Listen 8102 > # Listen 8103 > # Listen 8104 > # CharsetByPort koi8-r 8100 > # CharsetByPort windows-1251 8101 > # CharsetByPort ibm866 8102 > # CharsetByPort iso-8859-5 8103 > # CharsetByPort x-mac-cyrillic 8104 > # > # "AutoRedirect" setup > # > # CharsetAutoRedirect koi8-r :8100 > # CharsetAutoRedirect windows-1251 :8101 > # CharsetAutoRedirect ibm866 :8102 > # CharsetAutoRedirect iso-8859-5 :8103 > # CharsetAutoRedirect x-mac-cyrillic :8104 > # CharsetNormalizeTypes image/ application/ video/ audio/ > # CharsetNormalizeToURL :80 200 > # Do not redirect if charset determined as charsetdefault > # CharsetNoAutoRedirectForDefaultCharset On > # When redirect, use original unparsed URI instead of parsed one > # (useful with mod_rewrite) > # CharsetRedirectFromOriginalURL On > # > # > # Additional notes: > # Use > # CharsetAutoRedirect koi8-r none > # and > # CharsetNormalizeToUrl none > # in .htaccess/<Directory>/<Location>/<Files> if you wish to > # disable AutoRedirect for some particular URL > > CharsetBrokenAccept "Mozilla/4." "iso-8859-1,*,utf-8" > # Uncomment next line if you want strict hostname/dirname <->charset match > # (see documentation) > # CharsetStrictURIMatch On > > >
_, _, _, _, _ _, _,_
(_ | / \ |\ | / \ |_/
, ) | , \ / | \| \ / | \
~ ~~~ ~ ~ ~ ~ ~ ~
Programmed by
Dmitri Maximovich
,
Dmitry I. Platonoff
,
Eugen Kuleshov
.
25.09.99 (c) 1999,
RU/2
. All rights reserved.
Rewritten by
Dmitry Ban
. All rights ignored.