开发者

MediaWiki on SubDirectory and SubDomain

开发者 https://www.devze.com 2023-02-05 20:44 出处:网络
I wish to setup a MediaWiki install on both http://wiki.mysite.com/ and http://mysite.com/wiki/, I figure there\'s some kind of trick to it, I assume that with at least a little tinkering I can get th

I wish to setup a MediaWiki install on both http://wiki.mysite.com/ and http://mysite.com/wiki/, I figure there's some kind of trick to it, I assume that with at least a little tinkering I can get this working...

I installed it in a directory which aliased to http://mysite.com/wiki/, then setup another Apache VirtualHost, but now when I navigate to http://wiki.mysite.com/ I'm redirected to http://wiki.mysite.com/wiki/Main_Page, and get 开发者_运维知识库an internal server error.

Any thoughts?


I just moved my Wiki from /var/www/html/ to /var/www/html/wiki.

I needed to modify $wgScriptPath in LocalSettings.php from "" to "/wiki";

Then I needed to restart Apache: /etc/init.d/apache2 restart

Now navigating my browser to http://46.101.38.186/wiki correctly displays the main wiki page.

0

精彩评论

暂无评论...
验证码 换一张
取 消