Skip to content

Is it possible to rewrite URLs? #551

Open
@RicoHoff

Description

@RicoHoff

Hello,

I would like to use the image with docker-commpose.yml and rewrite the URLs so that I can specify the filename of the map in the path (without path and .map).

default:
http://your.mapserver.host/?map=/etc/mapserver/mapfile.map&service=WMS&request=GetCapabilities

requested:
http://your.mapserver.host/map/mapfile?service=WMS&request=GetCapabilities

The rewrite module is apparently not enabled by default in the image and my attempts to do so have unfortunately failed so far.
Is there an easy way to enable this via config? And if this works, do I additionally need to change something in the MS_MAP_PATTERN environment variable so that I don't get an error due to missing map parameter?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions