I setup my mediawiki server with apache2.
I use alias to redirect my url to the right location: (/etc/apche2/conf-enabled/mediawiki.conf)
Alias /wiki /var/lib/mediawiki
<Directory /var/lib/mediawiki/>
Options +FollowSymLinks
AllowOverride All
<IfVersion >= 2.3>
Require all granted
</IfVersion>
<IfVersion < 2.3>
order allow,deny
allow from all
</IfVersion>
</Directory>
Problem is that when I access the wiki, it crops my url somehow, which causes issues:
durban.ucl.tch.edu/wiki becomes durban/wiki
Why would the alias change the url? How can I keep the full url with the alias?
Best, Nicolas
The mediawiki docs suggests that you can set the $wgServer
variable in the mediawiki config like this:
$wgServer = 'http://durban.ucl.tch.edu';
which you may or may not consider a workaround.