Documentation
Overview ¶
Package mediawiki provides access to MediaWiki installations to Go web servers via CGI.
Index ¶
Constants ¶
View Source
const ( // Default PHP script to execute, if unspecified by the HTTP request. DirIndex = "index.php" // Default PHP CGI binary PHPExe = "php-cgi" // only execute PHP code from these directories (relative to // the mediawiki installation directory), but not from their // children. PHPWhitelistDirs = "/" // only serve static assets from these directories (relative // to the mediawiki installation directory) and from their // children, recursively. AssetWhitelistDirsRecursive = "/resources:/skins" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MediaWiki ¶
type MediaWiki struct { Root string // directory containing Mediawiki files URLPrefix string // the URL prefix used for accessing the wiki PHPExe string // php-cgi executable // see the constants with the same name for a description of // these fields. PHPWhitelistDirs []string AssetWhitelistDirsRecursive []string }
A *MediaWiki is an http.Handler that serves a mediawiki instance.
Notes ¶
Bugs ¶
After install, the server still allows access to the installer until restart.