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.
They are physically different machines. http://www.###.com/team1 is my local webserver A http://www.###.com/ is a webserver standing in some other building where I have no access at all
The *Path variables deal with what is seen from the outside. They are not used for accessing the filesystem.
But since A:/var/www/ == http://A/ == http://www.###.com/team1 and MediaWiki is located at /var/www/mediawiki, what is the correct $wgScriptPath? $wgScriptPath='/team1/mediawiki' would lead to http://A/team1/mediawiki which is wrong.
Thanks for your help!
Philipp