-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to rewrite URLs? #551
Comments
For that, you can use the |
Yes - as long as I have only one mapfile, right? However, I am looking for a solution for different mapfiles. All mapfiles are in the same folder. http://your.mapserver.host/map/mapfile1?service=WMS&request=GetCapabilities |
With MapServer 8.0 there is a file to do a mapping: |
no, but I will be happy to take a look |
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?
The text was updated successfully, but these errors were encountered: