我打算在生产服务器上安装MediaWiki(在开发环境上进行测试后)。我真的不明白为什么MediaWiki文件的默认位置是/var/lib/mediawiki
。我本以为/var/www
更合理。
我进行了一些研究,在Ubuntu政策手册,第11章 - 自定义程序,11.5 网络服务器和应用中写着以下内容。
为什么会这样呢?Web Document Root
Web Applications should try to avoid storing files in the Web Document Root. Instead >they should use the /usr/share/doc/package directory for documents and register the Web >Application via the doc-base package. If access to the web document root is unavoidable >then use
/var/www