I originally had an FGS setup installed and my OpenLayers page worked fine displaying both Google Maps layers and Mapserver layers which were retrieved by a WMS request.<br><br>However I have now moved over to HostGIS as a base and the WMS requests have become really strange.
<br><br>Originally a standard WMS request statement looked like this:<br><br><span style="color: rgb(255, 0, 0);"><a href="http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,grcad,cadbd,propbd,fmbl,varbl">
http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,grcad,cadbd,propbd,fmbl,varbl</a></span><br><br>However when running under HostGIS I kept getting mapserv errors and after satisfying all of the things it was whinging about, I got it to finally display again using the request shown below:
<br><br><span style="color: rgb(255, 0, 0);"><a href="http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,grcad,cadbd,propbd,fmbl,varbl&BBOX=144.841,-34.5838,146.344,-34.0477&format=image/png&width=800&height=600&styles=">
http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/mswmsrq.map&service=wms&version=1.1.1&request=getmap&SRS=EPSG:4326&layers=grap,grcad,cadbd,propbd,fmbl,varbl&BBOX=144.841,-34.5838,146.344,-34.0477&format=image/png&width=800&height=600&styles=
</a></span><br style="color: rgb(255, 0, 0);"><br>Notice the really strange "styles="<br><br>Despite this I cannot get WMS requests out of OpenLayers to work at all, even adding all of the extra parameters it is asking for.
<br><br>I have no idea what's going on here, possibly different mapserver settings are present in the HostGIS setup.<br><br>Any help with this would be much appreciated.<br><br><br>Cheers<br><br>Brad<br>