On 27/09/05, Sebastian Brinkmann <sbrinkmann(a)gmail.com> wrote:
I want to use Mediawiki behind a SSL-Proxy. So I add
the whole URL with the
proxy and the url of the server into $wgServer from LocalSettings.php. But
this doesn't work: When I load the Mainpage with the complete URL
https://ssl-proxy/normal-url/mediawiki/index.php... I get the Mainpage, but
without a style sheet running. The links are displayed, but just show the
adress without the so important "normal-url" in it.
You'll need to [also] set $wgScriptPath - it, and thus all the
relative URL the software generates from it, begin with "/", which
means "root of this domain". So however much you put into $wgServer,
your browser will interpret all URLs as being just the first part (the
"ssl-proxy" part) followed by "/skins/foo" or
"/index.php/foo".
In other words, set $wgServer to be just the server name (e.g.
"https://ssl-proxy.example.com") and put the rest of the path in
$wgScriptPath (e.g. "/normal-url/mediawiki"). The "/index.php",
"/skins/", etc, will be built from that, so don't try and include
those in either variable.
HTH
--
Rowan Collins BSc
[IMSoP]