Wouter van Nifterick created GEOS-4930:
------------------------------------------

             Summary: OpenLayers Map Preview always points to localhost
                 Key: GEOS-4930
                 URL: https://jira.codehaus.org/browse/GEOS-4930
             Project: GeoServer
          Issue Type: Bug
    Affects Versions: 2.1.2
            Reporter: Wouter van Nifterick
            Assignee: Andrea Aime


When viewing an OpenLayers preview of a layer, the generated HTML always seems 
to point to the location of the server as it's seen on the machine itself.

While the server is reachable from the outside world as 
http://www.mydomain.com/geoserver/openlayers/theme/default/style.css

The HTML contains this:
CSS is attempted to be downloaded from:
http://localhost:8080/geoserver/openlayers/theme/default/style.css
http://localhost:8080/geoserver/openlayers/OpenLayers.js
http://localhost:8080/geoserver/mylayer/wms

Proxy Base URL contains something like http://www.mydomain.com/geoserver/, and 
I'd expect that to be used in the preview.

Now the previews only work if you run a browser on localhost.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to