Platonides wrote:
> Philipp Lies wrote:
>> Hi,
>>
>> I have a problem with MediaWiki 1.15. Mediawiki is installed on server A 
>> which is an apache2 server. Accessing MediaWiki via:
>> http://A/mediawiki
>> works, the url is correctly redirected to
>> http://A/mediawiki/index.php/Main_Page
>>
>> Now here is the problem. Server A is externally accessible via
>> http://www.somedomain.com/somefolder/
>>
>> Now when I try to access the wiki from the outside world via
>> http://www.somedomain.com/somefolder/mediawiki/
>> I also get redirected to
>> http://internal-ip-of-server-A/mediawiki/index.php/Main_Page
>>
>> which will obviously not work. Accessing the page directly via
>> http://www.somedomain.com/somefolder/mediawiki/index.php/Main_Page
>>
>> loads the page but without the style, so just vanilla html style.
>>
>> Is there some way to tell MediaWiki to check which url was used and that 
>> it should use this as base url?
> 
> On LocalSettings.php you will have to $wgScriptPath (maybe also others
> that depend on it).
Thanks for the idea but no, thats not it. It's not the path which is wrong but 
the *hostname*. 
I enter into the browser: http://www.###.com/team1/mediawiki 
I get redirected to: http://192.168.0.1/mediawiki/index.php
Where the web root of 192.168.0.1 (apache 2.2.14) is http://www.###.com/team1/
So the part which is before the $wgScriptPath needs to be changed (or shouldn't 
be changed by MediaWiki, all my other php sites work nicely)
If I enter "http://www.###.com/team1/mediawiki/index.php/Main_Page"; I get the 
contents of the main page but no style at all.

So, where does MediaWiki read/set the part of the address which comes before 
$wgScriptPath?

Thanks for your help!

Philipp

_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to