Hi!
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.
Can anybody help me? I didn't find a information in the archive of this mailing list.
Thanks Sebastian Brinkmann
Sebastian Brinkmann wrote:
Hi!
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.
Can anybody help me? I didn't find a information in the archive of this mailing list.
Did you forget to set all the other paths? Did you forget to clear your objectcache table?
-- brion vibber (brion @ pobox.com)
Hi Brion,
On 9/28/05, Brion Vibber brion@pobox.com wrote:
Did you forget to set all the other paths? Did you forget to clear your objectcache table?
What do you meen? $wgScriptPath? But if I insert the whole URL there, I got a wrong link to the site as well. I resolve the problem now by adding the whole URL to $wgStylePath, but now all the links to the index.php are still wrong. They contain only the SSL-Proxy and then immediatly the mediawiki-directory. All my tries to add the server-url there, failed. What can I do?
Thanks, Sebastian
Sebastian Brinkmann wrote:
Hi Brion, On 9/28/05, Brion Vibber brion@pobox.com wrote:
Did you forget to set all the other paths? Did you forget to clear your objectcache table?
What do you meen? $wgScriptPath? But if I insert the whole URL there, I got a wrong link to the site as well. I resolve the problem now by adding the whole URL to $wgStylePath, but now all the links to the index.php are still wrong. They contain only the SSL-Proxy and then immediatly the mediawiki-directory. All my tries to add the server-url there, failed. What can I do?
In order to diagnose your problem further we will require more information than was given above:
* There is not an exact listing of what changes were made to the config file. * There is not an exact listing of incorrect output. * There is not an exact listing of expected correct output. * Descriptions such as "the whole URL", "a wrong link", "still wrong", "all my tries", and "add the server-url" are unclear to anyone not looking over your shoulder. Please include the exact and complete text you are referring to. * There is no response to the inquiry about the effect of clearing the objectcache table.
-- brion vibber (brion @ pobox.com)
Hi Brion
On 9/28/05, Brion Vibber brion@pobox.com wrote:
- There is not an exact listing of what changes were made to the config
file.
- There is not an exact listing of incorrect output.
- There is not an exact listing of expected correct output.
- Descriptions such as "the whole URL", "a wrong link", "still wrong",
"all my tries", and "add the server-url" are unclear to anyone not looking over your shoulder. Please include the exact and complete text you are referring to.
- There is no response to the inquiry about the effect of clearing the
objectcache table.
You are right. Ok, actually I have to following changes in the LocalSettings.php
$wgServer = "https://ssl-proxy/server-domainl"; $wgArticlePath = " https://ssl-proxy/server-domain/mediawiki/index.php?title=$1"; $wgStylePath = "https://ssl-proxy/server-domain/mediawiki/skins";
Since you told me, I changed the Object-Table after each reload of the LocalSettings.php and this make is easier, because the changes can be checked immediatly. The site is now display with the right Stylesheet and the links to all the articles are working.
My problem are: 1. The EDIT Button on top of the mainpage shows a wrong link to https://ssl-proxy/mediawiki/index.php, so the Server-Domain is missing. Same problem with the discussion button and version. And the same link problem in the left navigation bar for the tools menu. 2. The article-links on the mainpage are working correctly, BUT the links on the other pages have the same url-error as explained in 1.
I just tried to add the missing "server-domain" into $wgScriptPath, this has effect to the wrong urls, but don't solve the problem: then I have there https://ssl-proxy/server-domain/mediawiki/server-domain/mediawiki/index.php?.... A result, that I not really understand. :-(
Thank you for your help. I know that my first explains weren't so exactly, so, now I hope that you got what you need. :-)
Sebastian
Sebastian Brinkmann wrote:
You are right. Ok, actually I have to following changes in the LocalSettings.php
$wgServer = "https://ssl-proxy/server-domainl"; $wgArticlePath = " https://ssl-proxy/server-domain/mediawiki/index.php?title=$1"; $wgStylePath = "https://ssl-proxy/server-domain/mediawiki/skins";
Ok, what you probably want is something like:
$wgServer = "https://ssl-proxy"; $wgScriptPath = "/server-domain/mediawiki";
Note: $wgServer contains the protocol and hostname to be used in constructing of fully-qualified URLs. These are used on redirects and output of full URLs in various other places that require it (print footer, RSS feeds, etc).
Note: $wgScriptPath contains the base URL _path_ component, not including the protocol or server. The other various paths are based from this using the default configuration file, though you can override them if you move files from their default locations.
Now leave the defaults for the settings that base themselves on the given $wgScriptPath:
$wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
## If using PHP as a CGI module, use the ugly URLs # $wgArticlePath = "$wgScript/$1"; $wgArticlePath = "$wgScript?title=$1";
$wgStylePath = "$wgScriptPath/skins"; $wgStyleDirectory = "$IP/skins"; $wgLogo = "$wgStylePath/common/images/wiki.png";
$wgUploadPath = "$wgScriptPath/images"; $wgUploadDirectory = "$IP/images";
Since you told me, I changed the Object-Table after each reload of the LocalSettings.php and this make is easier, because the changes can be checked immediatly. The site is now display with the right Stylesheet and the links to all the articles are working.
Great!
My problem are:
- The EDIT Button on top of the mainpage shows a wrong link to
https://ssl-proxy/mediawiki/index.php, so the Server-Domain is missing. Same problem with the discussion button and version. And the same link problem in the left navigation bar for the tools menu.
This is caused by the bogus $wgScriptPath and hence $wgScript. It needs to be the complete URL path (relative to the server) that the client will see.
- The article-links on the mainpage are working correctly, BUT the links on
the other pages have the same url-error as explained in 1.
I just tried to add the missing "server-domain" into $wgScriptPath, this has effect to the wrong urls, but don't solve the problem: then I have there https://ssl-proxy/server-domain/mediawiki/server-domain/mediawiki/index.php?.... A result, that I not really understand. :-(
Looks like a combination of paths from two places; you want to avoid that. :)
-- brion vibber (brion @ pobox.com)
On 9/28/05, Brion Vibber brion@pobox.com wrote:
Ok, what you probably want is something like:
$wgServer = "https://ssl-proxy"; $wgScriptPath = "/server-domain/mediawiki";
Great! Now it is working. Well, part of my problem was, that Firefox cached the pages, even then reload with a pressed Shift-Key. Then I load the IE to check it out, it was perfect, so I restart Firefox and now it works.
Only problem: The SSL-Connection seems to be extremly slow, but this might be cause by 1&1. They use only one proxy for all the clients and this machine is maybe overloaded.
Thank you very much for your quick and good help!!!
Sebastian Brinkmann
Question: Which software do you use for the SSL-Proxy ?
I was trying to run mediawiki with Apache mod_proxy and had/have similar problems. However, my approach is different, since I have multiple interfaces in my mediawiki server. I need to access mediawiki by the proxy but also from another interface (O&M) without proxy in between. Therefore, setting $wgServer to a fixed full qualified URL is not working for me. Even if you try to access mediawiki per remote using a ssh forwarding tunnel listening on a different port on client side (e.g. http://localhost:6400), this will fail, since the $wgServer is fixed on port 80 and all redirects point to port 80.
Cheers Ralf
On Wednesday 28 September 2005 00:12, Sebastian Brinkmann wrote:
Hi!
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.
Can anybody help me? I didn't find a information in the archive of this mailing list.
Thanks Sebastian Brinkmann _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org