[mapguide-users] Setting up a site server and a webextensions server

Chris Claydon chris.claydon at autodesk.com
Wed May 27 11:36:48 EDT 2009


There is an IpAddress setting in both serverconfig.ini and webconfig.ini.

If machine B is connecting to machine A, it means you probably have the webconfig.ini setting set correctly. When you create a session, the IpAddress from the server is encoded into the session ID. The web tier extracts it and attempts to connect to it - this is how the web tier locates the server that owns a session in a multi-server environment.

So if your serverconfig.ini still contains 127.0.0.1 as the IP, machine B's web tier will look for a server on the same machine, and it'll fail. If you update the setting in serverconfig.ini to a "real" IP address that B can use to find A, it *should* work.

HTH,

Chris.

-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of Kenneth Skovhede, GEOGRAF A/S
Sent: Wednesday, May 27, 2009 9:19 AM
To: MapGuide Users Mail List
Subject: [mapguide-users] Setting up a site server and a webextensions server

I'm trying to set up a dual-machine environment.
I have installed the MapGuide server and MapGuide WebExtensions on 
machine A,
and then only the WebExtensions on machine B.

When I connect to the mapagent.fcgi on machine A, everything works as 
expected.

When I connect to machine B, it does not work.
This is what happens:
1) I go to the http test page
2) execute "CreateSession"
3) I am prompted for username/password, which I enter
4) I get a sessionID, as expected
5) I execute "GetSiteInfo", and I get the results as expected.
6) I copy the url for the GetSiteInfo request into my adressbar and I 
get the same response
--- Heres where it breaks
7) I then append "SESSION=<the session id from step 4>"
and it fails with this message:

Cannot establish connection. Exception occurred in method 
MgServerConnection.Open at line 106 in file 
d:\build\carrera_nightly\build_34.2\ent\os\common\mapguidecommon\Services/ServerConnection.cpp 


So, as long as I am using http authentication, everything works, but 
when I rely on the SESSION value, it fails.
Note that it fails even though I'm still http authenticating, but also 
passing the SESSION value.

Is this a known issue? What can I do to locate the error better?

-- 
Regards, Kenneth Skovhede, GEOGRAF A/S


_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


More information about the mapguide-users mailing list