[Geoserver-devel] [jira] (GEOS-4930) OpenLayers Map Preview always points to localhost

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