[mapserver-users] RE Setting up many vitual hosts

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Wed May 27 07:33:55 PDT 2015


Hi,

Here comes yet another version of Apache rewrite rule spiced with a per-service list of authorized users


-          if WMS request goes to cgi-bin/my_wms1, use mapfile home/maps/my_wms1.map

-          allow the use of cgi-bin/my_wms1 only for users "user1_wms1" and " user2_wms1"

RewriteRule ^/cgi-bin/my_wms1$ /cgi-bin/mapserv [L,E=MS_MAPFILE:${HOME}/maps/my_wms1.map]
<Location "/cgi-bin/my_wms1">
                             Require user user1_wms1 user2_wms1
</Location>

-Jukka Rahkonen-

Steve.Toutant at inspq.qc.ca<mailto:Steve.Toutant at inspq.qc.ca> wrote:

easy yes...
I suggest you read this, so you can choose your preferred method to do what you want
http://mapserver.org/ogc/wms_server.html#changing-the-online-resource-url

we use this method
http://mapserver.org/ogc/wms_server.html#wrapper-script-unix

But I just read that it is not recommended.....


"Mérette,Jacques (Consultant)" <Jacques.Merette-c at mtq.gouv.qc.ca<mailto:Jacques.Merette-c at mtq.gouv.qc.ca>>

2015-05-27 09:47

A

"'Steve.Toutant at inspq.qc.ca'" <Steve.Toutant at inspq.qc.ca<mailto:Steve.Toutant at inspq.qc.ca>>

cc

"'mapserver-users at lists.osgeo.org'" <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>, "mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org>" <mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org>>

Objet

RE: RE [mapserver-users] Setting up many vitual hosts









Bonjour Steve,

Excellent....
I want to have only one instance of mapserver bit many virtual hosts on Apache. Each virtual host will have its own "mapfile" (that is what I mean by "add my data in a new virtual host").  Following my understanding, it should be quite easy....

MErci!
J.

From: Steve.Toutant at inspq.qc.ca<mailto:Steve.Toutant at inspq.qc.ca> [mailto:Steve.Toutant at inspq.qc.ca]
Sent: 27 mai 2015 08:27
To: Mérette, Jacques (Consultant)
Cc: 'mapserver-users at lists.osgeo.org'; mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org>
Subject: RE [mapserver-users] Setting up many vitual hosts

Jacques it is possible to create many virtual host on apache, but what do you mean by "add my data in a new virtual host". The virtual hosts can use the same mapserver....Unless you want to have several instance of mapserver...?


"Mérette,Jacques (Consultant)" <Jacques.Merette-c at mtq.gouv.qc.ca<mailto:Jacques.Merette-c at mtq.gouv.qc.ca>>
Envoyé par : mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org>

2015-05-26 18:11


A

"'mapserver-users at lists.osgeo.org'" <mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>>

cc

Objet

[mapserver-users] Setting up many vitual hosts












Hi,

I'm installing Mapserver for the first time. The demo works fine on RHEL but I would like to add my data in a new virtual host. Is it possible to set up many vitual hosts on Apache/Mapserver?

Merci!
Jacques Mérette
Architecte technologique
Division des infrastructures technologiques
Service des infrastructures technologiques appliquées aux opérations
Direction des technologies de l'information
Ministère des Transports du Québec
Tél: 418-643-5350 # 24685
jacques.merette-c at mtq.gouv.qc.ca<mailto:jacques.merette-c at mtq.gouv.qc.ca>

Boîte commune : Architectes-Technologique._C-DTI at mtq.gouv.qc.ca<mailto:Architectes-Technologique._C-DTI at mtq.gouv.qc.ca>
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150527/e69b1a7f/attachment-0001.html>


More information about the mapserver-users mailing list