## Please edit system and help pages ONLY in the master wiki! ## For more information, please see MoinMoin:MoinDev/Translation. ##master-page:HelpMiscellaneous ##master-date:2007-11-29 12:07:41 #acl -All:write Default #format wiki #language ru = Остальные темы помощи MoinMoin = '''Содержание''' <> == Потерянный пароль == Если в вашем профиле указан ваш e-mail адрес (смотрите ПомощьВКонфигурации), то вы можете указать в Настройках выслать вам ваш пароль. Если SMTP не настроен, тогда кнопка "Отправить мне мой пароль" не будет показана в настройках и подписка на страницы не будет работать. == Добавление favicon в вашу вики == Вы можете добавить картинку в ваш вики, общеизвестную, как favicon.ico. Faviconы обычно появляются рядом с пунктами закладок и в браузерной строке. Чтобы изменить обычный favicon для вики, добавьте этот код в wikiconfig.py: {{{ html_head = ''' ''' }}} Картинка должна размером 16x16 пикселей. == Трюки с Apache == === Обеспечение безопасности доступа к вики через Apache === Cмотрите PasswordProtectedEditing === Установка вики в корень домена === подретактируйте ваш httpd.conf таким образом: {{{ # глобальная секция: LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so # секция виртуального хоста: RewriteEngine on RewriteRule ^/moin_static160/ - [last] RewriteRule ^/robots.txt - [last] RewriteRule ^/favicon.ico - [last] RewriteRule ^/?(.*) /file/path/to/moin.cgi/$1 [last,type=application/x-httpd-cgi] }}} Таким образом у вас будут ссылки типа http://LinuxWiki.de/FrontPage . Заметки: * /pathto/cgi-bin/.. - абсолютный путь * Убедитесь, что путь к moin.cgi имеет привелегии ExecCGI в вашем httpd.conf. * Нет надобности делать !ScriptAlias к moin.cgi, но всё равно нужно сделать алиас к htdocs !MoinMoin'a: `Alias /moin_static160/ "/usr/share/moin/htdocs/"` === Редирект /mywiki/MyWiki к ЗаглавнаяСтраница с языком пользователя === Наверное, если вы это читаете ;), вы хотите, чтобы My``Wiki в вашей вики указывала на вашу вики (во как). Если пользователь нажмет на эту ссылку, то его перебросит на ГлавнуюСтраница с языком, который выбрал пользователь в своих настройках. Добавьте {{{httpd.conf}}} ''перед'' {{{ScriptAlias}}}: {{{ RedirectPermanent /mywiki/MyWiki http://www.domain.org/mywiki?action=show }}} == Подача вики с wiki.domain.com и домашнюю страницу с www.domain.com == Вот конфигурация для виртуальных хостов со специальными правами для Gentoo Linux. Следующая конфигурация для конфигов Apache2. Добавьте это к /etc/apache2/conf/vhosts/vhosts.conf {{{ NameVirtualHost * ServerName www.domain.org ServerAlias domain.org DocumentRoot /var/www/domain.org/htdocs ServerName wiki.domain.org Alias /moin_static160/ "/usr/share/moin/htdocs/" Alias /favicon.ico "/var/www/htdocs/favicon.ico" ScriptAlias / "/usr/share/moin/mywiki/moin.cgi/" }}} А это добавьте к /etc/apache2/conf/commonapache2.conf {{{ Order deny,allow Allow from all Order deny,allow Allow from all }}} == Специальные фичи для ферм вики и интранетов == Следующие пункты покажут, как некоторые фичи помогут вам оптимизировать вашу конфигурацию, когда вы крутите несколько вики на одном хосте или когда вы юзаете MoinMoin в среде intranet. === Централизованные настройки === * farmconfig.py * общий intermap.txt * общая кодовая база и иконки === Ремаппинг URL-ов === Конфигурационная переменная "`url_mappings`" может быть использована для ремаппинга URL-ов, например, чтобы изменить некоторые префиксы URL на совершенно другие. Это особо актуально в intranet, когда всё дерево документов размещено вне рабочего пространства вики. It does not apply to most intra-wiki links as those are relative and are not remapped. "`url_mappings`" is a lookup table in the form of a dict, the key is the prefix to be replaced, the value is the replacement. You could also use "`url_mappings`" to include a dereferer-script for external links, like this: {{{ url_mappings = { 'http://my-wiki/': 'http://my-wiki/', 'http://': '/cgi-bin/derefer.cgi?url=http://' } }}} The reason you might want to use this is to avoid google spamming in your wiki (although this is unlikely to be noticed and would only counter the link spamming if done large-scale) or to keep your wikipages secret. Note that your own wiki needs to be included explicitly because URLs that might be generated automatically (for example for email notifications) would otherwise be remapped to your referrer script as well. '''Please notice:''' If you want to ''redirect'' a single page to another, just type `#REDIRECT` and the name of the page to direct to in the first line of your page. See HelpOnProcessingInstructions. == TODO == TODO: explain the following things in detail, and add more detail to the above sections Needing more explanation: * event logging * Page trails (user option) * UserPreferences: checkboxes for double-click edit, page trail, fancy links, emoticons, jump to last page visited, and some other yes/no options * "Remove trailing whitespace from each line" option in the editor * Page templates (create a new page using a template page) * Only "normal" URLs (outside of brackets) are converted to inline images ==> document exact rules * Highlighting of search results, and of bad words when spellchecking * Support for "file:" URLS * email notification features * "RSS" icon displayed by RecentChanges macro * commentary field of editor, recent changes and page info * Page caching, for now limited to XSLT processing (where it's absolutely needed); new code & API to add the "Delete``Cache" link * inline search fields (at the bottom of each page) * the interwiki name "Self" now always points to the own wiki * page info action Admin stuff: * describe "moin.cgi?action=test" tool in more detail * Wiki``Farm support: * /plugin/macro and /plugin/action can be used to store macros and actions local to a specific wiki instance * config.shared_intermap can contain a pathname to a shared "intermap.txt" file (i.e. one stored outside the datadir) * $PAGE placeholder in interwiki map Compatibility: * RSS features require a recent PyXML (CVS or 0.7) due to bugs in the namespace handling of xml.sax.saxutils in earlier versions. This is (hopefully) automatically detected on every installation.