[mapserver-users] Multiple MapCache configuration files

geographika geographika at gmail.com
Mon Aug 24 07:19:01 PDT 2015


Hi,

Many thanks for the quick reply!

<IfModule mapcache_module>
    <Directory "/ms4w/apps/mapcache/">
       Order Allow,Deny
       Allow from all
    </Directory>
    MapCacheAlias /mapcache "C:/ms4w/apps/mapcache/mapcache.xml"
    MapCacheAlias /mapcache2 "C:/ms4w/apps/mapcache/mapcache2.xml"
</IfModule>

I was getting the following errors in the log at first (even after a 
restart):

[Mon Aug 24 14:59:34 2015] [error] [client 127.0.0.1] File does not 
exist: C:/ms4w/Apache/htdocs/mapcache2

However after a few restarts of Apache everything started working 
correctly.

Regards,

Seth






On 24/08/2015 15:10, Travis Kirstine wrote:
> You can create multiple aliases in apache
>
> <IfModule mapcache_module>
>    <Directory /path/to/mapcache>
>       Order Allow,Deny
>       Allow from all
>    </Directory>
>    MapCacheAlias /mapcache_1 "/path/to/mapcache_1.xml"
>    MapCacheAlias /mapcache_2 "/path/to/mapcache_2.xml"
>    MapCacheAlias /mapcache_3 "/path/to/mapcache_3.xml"
> </IfModule>
>
>
> On Mon, Aug 24, 2015 at 8:51 AM, geographika <geographika at gmail.com 
> <mailto:geographika at gmail.com>> wrote:
>
>     Hi,
>
>     As per the configuration guide I have a single xml configuration
>     file for all MapCache layers. This is set in httpd.conf (I'm using
>     ms4w, and running on a Windows server):
>
>     <IfModule mapcache_module>
>        <Directory "/ms4w/apps/mapcache/">
>           Order Allow,Deny
>           Allow from all
>        </Directory>
>        MapCacheAlias /mapcache "C:/ms4w/apps/mapcache/mapcache.xml"
>     </IfModule>
>
>     However I'm using MapCache on a development server and hosting
>     several different applications. I create the xml file dynamically
>     for each application, however with this approach I either have to
>     change the above path and restart Apache, or merge all the xml
>     files together to a single file.
>
>     Is there anyway to change which xml file is used using a
>     querystring, or is there any other suggested approach to handling
>     multiple mapcache.xml files?
>
>     Regards,
>
>     Seth
>
>     --
>     web:http://geographika.co.uk
>     twitter: @geographika
>
>
>
>     _______________________________________________
>     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
>
>
>
>
> -- 
> FBS Logo 	
>
> *Travis Kirstine*, Web Development Supervisor
> *t *905‑477‑3600/ x /301 | *m *905‑534‑4798 | 
> tkirstine at firstbasesolution.com <mailto:tkirstine at firstbasesolution.com>
>
> *First Base Solutions Inc.*
> 140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
> *t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com 
> <http://www.firstbasesolutions.com>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20150824/ce0bf81d/attachment.htm>


More information about the MapServer-users mailing list