Philipp Lies wrote:
> Platonides wrote:
>> Don't embed the path in the server name.
>> $wgServer='http://www.###.com';
>> $wgScriptPath='/team1/mediawiki';
> The problem is:
> The root of my webserver is
> $wgServer='http://www.###.com/team1';
> so /var/www of my apache is http://www.###.com/team1
> MediaWikis path relative to the apache root is /mediawiki
> Therefor $wgScriptPath='/team1/mediawiki'; is wrong and would lead to a crash 
> if I would access the wiki via http://localservername/mediawiki 
> 
>>> but neither the style is loaded nor the links work, they point to
>>> http://www.###.com/mediawiki/. 
>>> Why?
>> It's using root relative urls.
> Right. But my root is http://www.###.com/team1 not http://www.###.com/, 
> that's a different webserver.
> 
>>> I cannot alter $wgScriptPath to "/team1/mediawiki" and $wgServer to 
>>> "http://www.###.com"; as this will break the system:
>>> "The page isn't redirecting properly"
>> What is it redirecting to?
>> You should try to fix this last error. Seems that mediawiki is seeing
>> itself in a different path.
> see above. The problem seems that mediawiki's root location wrt the apache is 
> not the root wrt the webadress. That screws it up. Addressing mediawiki 
> directly on the apache server works correct.
> 
> Cheers
> 
> Phil

The *Path variables deal with what is seen from the outside. They are
not used for accessing the filesystem.

When you say a different webserver, do you mean that it is on a
different machine or just that you can't change the webroot?
Your webserver should handle all of that, so the webapps know which is
their location.


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

Reply via email to