更改

添加385字节 、 2021年4月14日 (三) 22:17
第26行: 第26行:  
== 配置 ==
 
== 配置 ==
   −
Nginx 配置
+
=== Nginx 配置 ===
 +
 
 
<syntaxhighlight lang=nginx>
 
<syntaxhighlight lang=nginx>
 
server {
 
server {
第57行: 第58行:  
* [https://www.nginx.com/resources/wiki/start/topics/recipes/mediawiki/ Nginx MediaWiki 配置]
 
* [https://www.nginx.com/resources/wiki/start/topics/recipes/mediawiki/ Nginx MediaWiki 配置]
 
* [https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/ Nginx PHP FastCGI Example]
 
* [https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/ Nginx PHP FastCGI Example]
 +
 +
=== MediaWiki 配置 ===
 +
 +
<syntaxhighlight lang=php>
 +
$wgArticlePath = "/wiki/$1";
 +
$wgFavicon = "/images/favicon.ico";
 +
 +
# 权限
 +
$wgGroupPermissions['*']['createaccount'] = false;
 +
$wgGroupPermissions['*']['edit'] = false;
 +
$wgGroupPermissions['sysop']['interwiki'] = true;
 +
 +
# 移动版皮肤
 +
wfLoadSkin('MinervaNeue');
 +
$wgMFDefaultSkinClass = 'SkinMinerva';
 +
</syntaxhighlight>
    
== 扩展 ==
 
== 扩展 ==