Інші розділи Довідки МоінМоін
Підрозділи
Зміст
Contents
Втрачений пароль користувача
Якщо ви налаштували поштову систему для вашого Моіна (дивіться ДовідкаКонфігурування), користувачі зможуть отримувати їхні паролі електронною поштою, як вказано у налаштуваннях. Якщо SMTP не сконфігуровано, кнопки Mail me my account data на сторінці ВашіНалаштування не буде, і передплачені сторінки надсилатися користувачам також не будуть.
Додавання значка сторінки до налаштувань вікі
Ви, можливо, захочете додати якийсь значок до вашого вікі-майданчика, зазвичай відомого як favicon.ico. Щоб мати такі маленькі значки біля закладок та на заголовках вкладок, додайте до вашого wikiconfig.py:
html_head = ''' <link rel="shortcut icon" href="/moin_static160/favicon.ico"> <!-- ... інші налаштування ... --> '''
Розмір зображення значка мусить бути 16x16.
Трюки із Apache
Обмеження доступу до сторінки вікі засобами Apache
Дивіться ПарольНаРедагування
Вікі як обслуговувач кореня домена
Зміни httpd.conf для встановлення МоінМоін'а у "/":
# global section: LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so # virtualhost section: 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://moinmoin.wikiwikiweb.de/ТитульнаСторінка.
Зауважте:
- /pathto/cgi-bin/.. - абсолютний длях до файла, не шлях посилання.
Впевніться, що шлях до файла moin.cgi має привілеї ExecCGI у httpd.conf.
Немає потреби у ScriptAlias для moin.cgi, але однак необхідно створити псевдонім до каталогу htdocs МоінМоін'а: Alias /moin_static160/ "/usr/share/moin/htdocs/"
Перенаправення /mywiki/MyWiki на ТитульнуСторінку мовою користувача
Можливо, ви захочете, щоб MyWiki на вашому вікі посилався на ваш вікі. Якщо користувач вибере це посилання, його має бути перенаправлено до ТитульноїСторінки, перекладеної його рідною мовою.
Додайте це до httpd.conf перед ScriptAlias:
# гадаю, посилання "МійВікі" у конфігураційному файлі Apache не спрацює. RedirectPermanent /mywiki/MyWiki http://www.domain.org/mywiki?action=show
Вікі як обслуговувач wiki.domain.com та from www.domain.com
Тут наведено конфігурацію для віртуального хостингу із використанням спеціальних прав доступу на Дженту Лінуксі. Вказані налаштування - для конфігураційних файлів сервера Apache2.
Додайте це до /etc/apache2/conf/vhosts/vhosts.conf:
NameVirtualHost * <VirtualHost *> ServerName www.domain.org ServerAlias domain.org DocumentRoot /var/www/domain.org/htdocs </VirtualHost> <VirtualHost *> 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/" </VirtualHost>
Додайте це до /etc/apache2/conf/commonapache2.conf:
<Directory /usr/share/moin/htdocs/> Order deny,allow Allow from all </Directory> <Directory /usr/share/moin/domain.org/> Order deny,allow Allow from all </Directory>
Спеціальні можливості для вікі-ферм та внутрішніх мереж
Наступні налаштування показують, як певні можливості МоінМоін допоможуть вам оптимізувати роботу кількох вікі на одній машині, чи у разі використання МоінМоін у внутрішніх середовищах.
Централізовані налаштування
- farmconfig.py
- спільний intermap.txt
- спільний код та значки
Перенаправлення посилань
Параметер конфігурації "url_mappings" можна використовувати для перенаправлень посилань, наприклад, для зміни префіксів первного посилання на зовім інші. Це особливо зручно у внітрішніх середовищах, коли доводиться переміщувати цілі дерева документів.
"url_mappings" - це таблиця у формі словника, ключем є префікс посилання, значенням - необхідна заміна.
Ви також можете використовувати змінну "url_mappings" для заборони доступу до певних (чи усіх) зовнішніх посилань (із допомогою заборонного скрипта), наприклад:
url_mappings = {
'http://my-wiki/': 'http://my-wiki/',
'http://': '/cgi-bin/derefer.cgi?url=http://'
}
TODO
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 "DeleteCache" 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
WikiFarm support:
<datadir>/plugin/macro and <datadir>/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.