The server name can be overridden with $wgServer
, if I understand your question correctly, this is the parameter you are looking for.
If you need to, you can set both upload path a and style path separately, using $wgUploadPath
and $wgStylePath
, even though I can't figure out why that would be necessary.