Phil,

If GeoServer is proxied, then the Global Setting 'Proxy Base URL' may need to set.[1]

In my experience, that's one of the first settings I check when I hear that things aren't quite working.:)  For example, having that URL unset with a proxy is the fastest way to trash proper OGC clients.

Cheers,

Jim

1. https://docs.geoserver.org/stable/en/user/configuration/globalsettings.html#proxy-base-url


On 3/12/20 5:59 AM, Vitor Fonseca wrote:

that ftl is on lib dir
gs-wms-2.<version>.jar

Phil Scadden <p.scad...@gns.cri.nz <mailto:p.scad...@gns.cri.nz>> escreveu no dia quarta, 11/03/2020 à(s) 22:55:

    Thanks Jim. What I suspect, is that someone has hacked the ftl on
    the geoserver instance because of the way that the geoserver
    instance is proxied. I was wondering where the flt was on the
    tomcat layout as I could immediately spot it. Ie does it live in
    geoserver_data or under the webapps dir.

    *From:*Jim Hughes <jhug...@ccri.com <mailto:jhug...@ccri.com>>
    *Sent:* Thursday, 12 March 2020 10:30
    *To:* geoserver-users@lists.sourceforge.net
    <mailto:geoserver-users@lists.sourceforge.net>
    *Subject:* Re: [Geoserver-users] openlayers layer preview trying
    to load css and js on http, but server is on https

    Hi Phil,

    The OpenLayers ftl template is here[1], and it doesn't specify
    http.  It appears that there's an attempt between the ftl and [2]
    to use whatever protocol you used when requesting the preview page.

    If you visited the page with https and it is redirecting you to
    http for the ol.css and ol.js, then there may be a bug.

    Cheers,

    Jim

    1.
    
https://github.com/geoserver/geoserver/blob/master/src/wms/src/main/resources/org/geoserver/wms/map/OpenLayers2MapTemplate.ftl

    2.
    
https://github.com/geoserver/geoserver/blob/b76bba7178d3505cd45e318e659c3b32faee4b5e/src/wms/src/main/java/org/geoserver/wms/map/AbstractOpenLayersMapOutputFormat.java#L147-L148

    On 3/11/20 5:11 PM, Phil Scadden wrote:

        Somewhat annoying. Is the openlayers template used for layer
        preview accessible outside code so that we can change the
        headers loading the css and js from http to https?

        *From:*Phil Scadden <p.scad...@gns.cri.nz>
        <mailto:p.scad...@gns.cri.nz>
        *Sent:* Monday, 24 February 2020 10:07
        *To:* geoserver-users@lists.sourceforge.net
        <mailto:geoserver-users@lists.sourceforge.net>
        *Subject:* Re: [Geoserver-users] DYnamic styles on geoserver

        Instead of say “square” for the Mark symbol, you can replace
        with an ECQL expression that evaluates to a name of a mark.
        The obvious one would be say store the mark to use in an
        attribute called mysymbol.

        The sld would then be

        <Mark>

        ${mysymbol}

        </Mark>

        What version of geoserver are you using?

        *From:*Elham soudy <e.so...@penta-b.com
        <mailto:e.so...@penta-b.com>>
        *Sent:* Monday, 24 February 2020 02:49
        *To:* geoserver-users@lists.sourceforge.net
        <mailto:geoserver-users@lists.sourceforge.net>
        *Subject:* [Geoserver-users] DYnamic styles on geoserver

        hi all ,

        I need help about creating a dynamic style on geoserver ,
        after searching i get the geoserver user manual which i can
        not apply it on my local one ,

        which made me ask for a help , this url which i read

        
https://docs.geoserver.org/stable/en/user/styling/sld/extensions/pointsymbols.html

        so plz any help if u can

        yours,

        elham

        Notice: This email and any attachments are confidential and
        may not be used, published or redistributed without the prior
        written consent of the Institute of Geological and Nuclear
        Sciences Limited (GNS Science). If received in error please
        destroy and immediately notify GNS Science. Do not copy or
        disclose the contents.

        Notice: This email and any attachments are confidential and
        may not be used, published or redistributed without the prior
        written consent of the Institute of Geological and Nuclear
        Sciences Limited (GNS Science). If received in error please
        destroy and immediately notify GNS Science. Do not copy or
        disclose the contents.




        _______________________________________________

        Geoserver-users mailing list

        Please make sure you read the following two resources before posting to 
this list:

        - Earning your support instead of buying it, but Ian 
Turton:http://www.ianturton.com/talks/foss4g.html#/

        - The GeoServer user list posting 
guidelines:http://geoserver.org/comm/userlist-guidelines.html

        If you want to request a feature or an improvement, also see 
this:https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer

        Geoserver-users@lists.sourceforge.net  
<mailto:Geoserver-users@lists.sourceforge.net>

        https://lists.sourceforge.net/lists/listinfo/geoserver-users

    Notice: This email and any attachments are confidential and may
    not be used, published or redistributed without the prior written
    consent of the Institute of Geological and Nuclear Sciences
    Limited (GNS Science). If received in error please destroy and
    immediately notify GNS Science. Do not copy or disclose the contents.
    _______________________________________________
    Geoserver-users mailing list

    Please make sure you read the following two resources before
    posting to this list:
    - Earning your support instead of buying it, but Ian Turton:
    http://www.ianturton.com/talks/foss4g.html#/
    - The GeoServer user list posting guidelines:
    http://geoserver.org/comm/userlist-guidelines.html

    If you want to request a feature or an improvement, also see this:
    
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


    Geoserver-users@lists.sourceforge.net
    <mailto:Geoserver-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geoserver-users



--

www.vfonsecaz.pt <http://www.vfonsecaz.pt>


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to