From: sanchit g. <saa...@gm...> - 2010-07-31 06:37:53
|
hello Rob/Andrea/all, I checked using firebug and it seems when a WMS request is being sent ...the reverse mapping is not getting done from internal url to mapped url i.e. www.internalIP/geoserver is not getting mapped to www.mydomain.com/geoserver , though i have setup a proxy pass and reverse proxy pass in the apache configuration .. I did the GetCapabilities(from outside the proxy) request and it is also returning fine ..it is also getting mapped correctly .. with the url inside the xml being ... www.mydomain.com/geoserver It is only the WMS request that is not getting mapped correctly . I checked the error console and it is saying Openlayers not defined .. Error: OpenLayers is not defined Source File: http://www.mydomain.com/geoserver/wms?service=WMS&version=1.1.0&request=GetMap&layers=sf:streams&styles=&bbox=589434.4971235897,4913947.342298816,609518.2117427464,4928071.049965891&width=512&height=360&srs=EPSG:26713&format=application/openlayers Line: 116 But if i do www.mydomain.com/geoserver/openlayers/theme/default/style.css it is getting displayed .. Any clue regarding the problem? On Mon, Jul 26, 2010 at 7:30 PM, Rob <gi...@va...> wrote: > Are you trying to access http://mydomain.com/geoserver using a browser > or a WMS client? > > I would suggest using a browser, then you can see any error messages. > > You could also try checking the getcapabilities response internally and > externally. This should tell you whether the "proxy base url" has been > configured correctly, as this URL will be published within. > > I would have thought that there can be only two things you have wrong: > 1) Geoserver "proxy base url". > 2) Apache proxy settings. > > As to the info not working from within the proxy, that suggests that you > have configured your "proxy base url" correctly (your WMS client is using > the values in the GetCapabilties response to send the GetFeatureInfo > requests), but that Apache is incorrect. Assuming of course that you CAN > query that layer. > > HTH > > Rob > > > On 20 July 2010 11:03, sanchit gupta <saa...@gm...> wrote: > >> hello Andrea , >> >> I tried setting the Proxy_Base_url in the geoserver's web.xml file .. but >> still the same .. WMS not working .. >> Also I have one more problem .. From inside the proxy ... even though the >> map is getting displayed .. but when i click the map to get feature info .. >> it is not fetching the information ... Any idea what could be the problem >> .. I am struck here for days.. >> >> On Fri, Jul 16, 2010 at 6:25 PM, Andrea Aime <aa...@op...> wrote: >> >>> saanchi ha scritto: >>> >>>> I have a setup like this: >>>> internal ip1 --- application running >>>> internal ip2 --- geoserver running >>>> i am behind a proxy .. at proxy server apache is running at proxy server >>>> i have added reverse proxy for geoserver and application server >>>> http://mydomain.com/application internal ip1 >>>> http://mydomain.com/geoserver internal ip2 The application is >>>> running fine from outside the proxy server .. >>>> but the WMS request for geoserver does not work properly from outside >>>> the proxy .. >>>> Any suggestions are welcome. >>>> >>> >>> You probably haven't configured "proxy base url" in the >>> server settings. For example http://demo.opengeo.org/geoserver/ >>> is running behing an apache proxy, and the proxy base url >>> has been setup as "http://demo.opengeo.org/geoserver/". >>> >>> Most reverse proxies (Apache mod_proxy included) do not handle >>> well the xml documents filled with back references generated >>> by an OGC server >>> >>> Cheers >>> Andrea >>> >>> >>>> >>>> ------------------------------------------------------------------------------ >>>> This SF.net email is sponsored by Sprint >>>> What will you do first with EVO, the first 4G phone? >>>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >>>> _______________________________________________ >>>> Geoserver-users mailing list >>>> Geo...@li... >>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>>> >>> >>> >>> -- >>> Andrea Aime >>> OpenGeo - http://opengeo.org >>> Expert service straight from the developers. >>> >> >> >> >> -- >> Sincere Regards, >> Sanchit Gupta >> >> >> >> ------------------------------------------------------------------------------ >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> _______________________________________________ >> Geoserver-users mailing list >> Geo...@li... >> https://lists.sourceforge.net/lists/listinfo/geoserver-users >> >> > -- Sincere Regards, Sanchit Gupta |