## Please edit system and help pages ONLY in the moinmaster wiki! For more ## information, please see MoinMaster:MoinPagesEditorGroup. ##master-page:HelpMiscellaneous ##master-date:2005-06-19 14:50:35 #acl MoinPagesEditorGroup:read,write,delete,revert All:read #format wiki #language zh == 其他MoinMoin帮助主题 == '''Subtopics''' * [[/常见问题解答]] * [[/试验性的功能]] '''目录''' <> === 为你建立的维基增加一个图标 === 也许你想给你的维基站点增加一个图标,一般也叫做 `favicon.ico`。要想让这些小的图标在书签和标签浏览上显示出来,请把这些加入到你的`wikiconfig.py`: {{{ html_head = ''' ''' }}} 图像尺寸''必须''是16x16大小,并更名为`favicon.ico`,放在Document``Root目录。不是所有的浏览器都兼容此功能(比如Mozilla 1.0 - 1.3版本)。 === Apache tricks === ==== Securing access to a wiki via Apache means ==== 参阅 MoinMoin:PasswordProtectedEditing ==== Serving the wiki from a domain root ==== `httpd.conf` modification for MoinMoin installation at "/": {{{ # global section: LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so # virtualhost section: RewriteEngine on RewriteRule ^/wiki/ - [last] RewriteRule ^/robots.txt - [last] RewriteRule ^/favicon.ico - [last] RewriteRule ^/?(.*) /file/path/to/moin.cgi/$1 [last,type=application/x-httpd-cgi] }}} This way you can use short and clean URLs like http://LinuxWiki.de/FrontPage. Note: * /pathto/cgi-bin/.. is absolute file path, not a URL path. * Make sure the ''file path'' to moin.cgi has ExecCGI privileges in your httpd.conf. * There is no need for a !ScriptAlias to moin.cgi, but you still need the alias to MoinMoin's htdocs folder: `Alias /wiki/ "/usr/share/moin/htdocs/"` ==== Redirect /mywiki/MyWiki to the user's language FrontPage ==== Perhaps you want to use My``Wiki in your wiki to refer to your wiki. If a user clicks this link s/he should be transfered to the FrontPage, that is to the FrontPage of her/his language. Add this to your {{{httpd.conf}}} ''before'' the {{{ScriptAlias}}}: {{{ RedirectPermanent /mywiki/MyWiki http://www.domain.org/mywiki?action=show }}} === Serving the wiki from wiki.domain.com and home page from www.domain.com === Here is a configuration for virtual hosting with special permissions on Gentoo Linux. The following configuration is for Apache2 config files. Just put it all in httpd.conf for Apache 1. Add this to /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 /wiki/ "/usr/share/moin/htdocs/" Alias /favicon.ico "/var/www/htdocs/favicon.ico" ScriptAlias / "/usr/share/moin/mywiki/moin.cgi/" }}} Add this to /etc/apache2/conf/commonapache2.conf {{{ Order deny,allow Allow from all Order deny,allow Allow from all }}} === Special features for wiki farms and intranets === The following shows how certain features can help you to optimize your configuration when you run several wikis on one host, or when you use MoinMoin in intranet environments. ==== Centralized settings ==== * farmconfig.py * shared intermap.txt * shared code base and icons ==== Remapping URLs ==== The configuration variable "`url_mappings`" can be used to remap URLs, for example to change certain URL prefixes to totally different ones. This is especially useful in intranets, when whole trees of documents hosted outside of the wiki move around. 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 命令行工具: * "moin-dump"命令行工具可生成维基内容的静态拷贝 * "pagescleaner"显示data/pages中未使用的目录 * "globaledit"脚本可以为维基中所有的页面作全局改动 兼容性: * 由于早期PyXML中xml.sax.saxutils对命名空间的处理存在错误,所以RSS功能要求PyXML版本较新(CVS或者0.7)。每次安装的时候(希望)会自动检测。 此页的英文版本: HelpMiscellaneous