Hi David,

One idea: if you have a frontend proxy (eg. nginx) it can pull out the
customTag, put it in a header which is then passed to GeoServer (eg,
X-David: customTag), and then rewrite the GeoServer URL to /wms. Then you
can access the header from the request object in GeoServer wherever you
need it. If you need the value in responses as well (eg. GetCapabilities
returning URLs including the "customTag" part), then you'll need a
URLMangler implementation to that knows how to rewrite URLs to contain it.

Rob :)

On Fri, Jan 23, 2015 at 8:00 AM, Marks, David <[email protected]>
wrote:

> Hello all,
>
> I'm trying to create a URL alias for the Geoserver WMS but am having
> trouble determining precisely how to do so; my googling has given me some
> similar results but nothing matching my current goals.
>
> To explain; I would like to be able to reach the WMS via both
> <server>/wms/ and <server>/customTag (or <server>/wms/customTag) so that
> special request/response handling could be performed when sent via the
> customTag, but not when sent usually. This seems similar to the namespace
> concept, but I would want the same layers and workspaces visible from
> either address (and, indeed, would prefer to keep workspace functionality
> on top of the customTag endpoint).
>
> I suspect this is easy to do and I've just somehow missed the document
> outlining the process. Anyone able to share some insight into how best this
> could be accomplished?
>
> Thank you,
> David Marks
>
>
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> Geoserver-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-devel
>



-- 

*Koordinates*PO Box 1604, Shortland St, Auckland 1140, New Zealand
Phone +64-9-966 0433 koordinates.com <https://koordinates.com/about>
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to