[MapServer-users] Twin Cities Local OSGeo Chapter Meeting for Jan 2023

2023-01-06 Thread Basques, Bob (CI-StPaul)
All,

Just sending out a request for presenter or presenters for our next virtual 
meeting on Jan. 11th.

Time: 4:30 pm CDT



Anything Geo related.   I’ll take care of setting up the presentation , etc.

Thanks

Bobb



Get me in 
Teams
PW19-S295-C024


___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [MapServer-users] How to create aliases on mapserver docker image camptocamp/mapserver?

2023-01-06 Thread Lime, Steve D (MNIT) via MapServer-users
What isn't working with the configuration you have in place on docker? The 
locations aren't virtual hosts so they'd be sharing a mapserver config file. 
The config file support will fall back to an environment variable if the value 
isn't set explicitly in the config file - we get that for free with the CPL 
functions being used. So, at first glance it seems like having a custom value 
for MS_MAPFILE based on location should work assuming you don't have that value 
set in the mapserver config file.

From: MapServer-users  On Behalf Of 
Marcin Niemyjski via MapServer-users
Sent: Thursday, January 5, 2023 5:46 AM
To: Marcin Niemyjski via MapServer-users 
Subject: [MapServer-users] How to create aliases on mapserver docker image 
camptocamp/mapserver?



Hello,

I'm using camptocamp mapserver docker image. I want to create Aliases so I can 
access several mapfiles using their file names,

example: www.service.pl/WMSNo1 instead of 
www.service.pl?map=/etc/mapserver/WMSNo1.map.

Could you please provide me an example of how to edit /etc/apache2/apache2.conf 
to make it work?

On regular Mapserver I'm using this as alias and it works just fine:
Alias /Sentinel2Ukraine "/usr/lib/cgi-bin/mapserv"

   SetHandler cgi-script
   Options ExecCGI
   SetEnv MS_MAPFILE 
"/DyskPlanetiler/MAPFILEs/automatyzacja/Sentinel2Ukraine.map"


On camptocamp I created somthing similiar to code above:

Alias /Sentinel2Ukraine "/usr/local/bin/mapserv"

SetHandler cgi-script
Options ExecCGI
SetEnv MS_MAPFILE "/etc/mapserver/Sentinel2Ukraine.map"


Alias /Sentinel2Poland "/usr/local/bin/mapserv"

SetHandler cgi-script
Options ExecCGI
SetEnv MS_MAPFILE "/etc/mapserver/Sentinel-2-PL.map"


Best,
Marcin

[cid:image001.png@01D921B4.154084C0]
Book time to meet with 
me

___
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users