[mapguide-commits] r5098 - in trunk/MgDev/Web/src: mapviewerjava
mapviewernet mapviewerphp
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Aug 31 06:26:11 EDT 2010
Author: liuar
Date: 2010-08-31 10:26:11 +0000 (Tue, 31 Aug 2010)
New Revision: 5098
Modified:
trunk/MgDev/Web/src/mapviewerjava/quickplotgeneratepicture.jsp
trunk/MgDev/Web/src/mapviewernet/quickplotgeneratepicture.aspx
trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php
Log:
Submit on behalf of Mars Wu for Quick Plot
Use 127.0.0.1 specificly as the host of map agent
Modified: trunk/MgDev/Web/src/mapviewerjava/quickplotgeneratepicture.jsp
===================================================================
--- trunk/MgDev/Web/src/mapviewerjava/quickplotgeneratepicture.jsp 2010-08-31 09:50:13 UTC (rev 5097)
+++ trunk/MgDev/Web/src/mapviewerjava/quickplotgeneratepicture.jsp 2010-08-31 10:26:11 UTC (rev 5098)
@@ -201,8 +201,9 @@
// Get the correct http protocol
StringBuilder mapAgent = new StringBuilder(request.getScheme());
mapAgent.append("://");
- // Get the server name
- mapAgent.append(request.getServerName()).append(":");
+ // Just use the 127.0.0.1 specificly to point to localhost. Because the WebExtension will
+ // be always on the same server with map agent.
+ mapAgent.append("127.0.0.1").append(":");
// Get the correct port number;
mapAgent.append(request.getServerPort());
// Get the correct virtual directory
Modified: trunk/MgDev/Web/src/mapviewernet/quickplotgeneratepicture.aspx
===================================================================
--- trunk/MgDev/Web/src/mapviewernet/quickplotgeneratepicture.aspx 2010-08-31 09:50:13 UTC (rev 5097)
+++ trunk/MgDev/Web/src/mapviewernet/quickplotgeneratepicture.aspx 2010-08-31 10:26:11 UTC (rev 5098)
@@ -117,7 +117,9 @@
// Get the correct http protocol
StringBuilder mapAgent = new StringBuilder(Request.IsSecureConnection ? "https://" : "http://");
// Get the correct port number
- mapAgent.Append(Request.ServerVariables["SERVER_NAME"]).Append(":").Append(Request.ServerVariables["SERVER_PORT"]);
+ // Just use the 127.0.0.1 specificly to point to localhost. Because the WebExtension will
+ // be always on the same server with map agent.
+ mapAgent.Append("127.0.0.1").Append(":").Append(Request.ServerVariables["SERVER_PORT"]);
// Get the correct virtual directory
string url = Request.ServerVariables["URL"];
Modified: trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php
===================================================================
--- trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php 2010-08-31 09:50:13 UTC (rev 5097)
+++ trunk/MgDev/Web/src/mapviewerphp/quickplotgeneratepicture.php 2010-08-31 10:26:11 UTC (rev 5098)
@@ -97,7 +97,9 @@
$mapAgent .= "s";
}
// Get the correct port number
- $mapAgent .= "://" . $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"];
+ // Just use the 127.0.0.1 specificly to point to localhost. Because the WebExtension will
+ // be always on the same server with map agent.
+ $mapAgent .= "://127.0.0.1:" . $_SERVER["SERVER_PORT"];
// Get the correct virtual directory
$mapAgent .= substr($_SERVER["REQUEST_URI"], 0, strpos($_SERVER["REQUEST_URI"], "/", 1));
$mapAgent .="/mapagent/mapagent.fcgi?VERSION=1.0.0&OPERATION=GETMAPIMAGE" .
More information about the mapguide-commits
mailing list