Skip to content

Mapcache not working #7359

Description

@jarek556

I installed mapcache (latest, compiled from sources) on Debian 12 with apache2 and it is not working. Every request, like: /mapcache/demo or /mapcache?SERVICE=WMS&REQUEST=GetCapabilities returns 404.
I have almost the same configuration on other server and it works. What I'm doing wrong ?

Apache:

<IfModule mapcache_module>
   <Directory "/etc/mapcache">
      Require all granted
   </Directory>
        MapCacheAlias /mapcache "/etc/mapcache/mapcache.xml"
</IfModule>

/etc/mapcache/mapcache.xml:

<mapcache>
  <cache name="disk" type="disk">
    <base>/var/cache/mapcache</base>
  </cache>

  <format name="jpeg" type="JPEG">
    <quality>85</quality>
  </format>

  <source name="geoportal_orto" type="wms">
    <http>
      <url>https://mapy.geoportal.gov.pl/wss/service/PZGIK/ORTO/WMS/StandardResolution?</url>
    </http>
    <getmap>
      <params>
        <FORMAT>image/jpeg</FORMAT>
        <LAYERS>Raster</LAYERS>
        <STYLES></STYLES>
        <VERSION>1.1.1</VERSION>
        <TRANSPARENT>false</TRANSPARENT>
      </params>
    </getmap>
  </source>

  <tileset name="ortofoto">
    <source>geoportal_orto</source>
    <cache>disk</cache>
    <grid>EPSG:3857</grid>
    <format>jpeg</format>
    <metatile>4 4</metatile>
    <metabuffer>64</metabuffer>
    <error_reporting>log</error_reporting>
  </tileset>

  <grid name="EPSG:3857">
    <srs>EPSG:3857</srs>
    <extent>-20037508.34 -20037508.34 20037508.34 20037508.34</extent>
    <units>m</units>
    <size>256 256</size>
    <origin>top-left</origin>
    <resolutions>
      156543.0339280410 78271.51696402048 39135.75848201023 19567.87924100512
      9783.939620502561 4891.969810251280 2445.984905125640 1222.992452562820
      611.4962262814100 305.7481131407048 152.8740565703525 76.43702828517624
      38.21851414258813 19.10925707129406 9.554628535647032 4.777314267823516
      2.388657133911758 1.194328566955879 0.5971642834779395
    </resolutions>
  </grid>

  <service type="wmts" enabled="true"/>
  <service type="wms" enabled="true"/>
  <service type="tms" enabled="true"/>
  <service type="demo" enabled="true"/>
</mapcache>

apache log:

[Tue Oct 07 21:02:02.118722 2025] [http:trace4] [pid 3704305:tid 3704312] http_request.c(435): [client 80.70.60.12:45796] Headers received from client:
[Tue Oct 07 21:02:02.118785 2025] [http:trace4] [pid 3704305:tid 3704312] http_request.c(438): [client 80.70.60.12:45796]   Host: viewer01.lan:7777
[Tue Oct 07 21:02:02.118796 2025] [http:trace4] [pid 3704305:tid 3704312] http_request.c(438): [client 80.70.60.12:45796]   User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:142.0) Gecko/20100101 Firefox/142.0
[Tue Oct 07 21:02:02.118803 2025] [http:trace4] [pid 3704305:tid 3704312] http_request.c(438): [client 80.70.60.12:45796]   Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[Tue Oct 07 21:02:02.118811 2025] [http:trace4] [pid 3704305:tid 3704312] http_request.c(438): [client 80.70.60.12:45796]   Accept-Language: pl,en-US;q=0.7,en;q=0.3
[Tue Oct 07 21:02:02.118819 2025] [http:trace4] [pid 3704305:tid 3704312] http_request.c(438): [client 80.70.60.12:45796]   Accept-Encoding: gzip, deflate
[Tue Oct 07 21:02:02.118826 2025] [http:trace4] [pid 3704305:tid 3704312] http_request.c(438): [client 80.70.60.12:45796]   Connection: keep-alive
[Tue Oct 07 21:02:02.118833 2025] [http:trace4] [pid 3704305:tid 3704312] http_request.c(438): [client 80.70.60.12:45796]   Upgrade-Insecure-Requests: 1
[Tue Oct 07 21:02:02.118840 2025] [http:trace4] [pid 3704305:tid 3704312] http_request.c(438): [client 80.70.60.12:45796]   Sec-GPC: 1
[Tue Oct 07 21:02:02.118848 2025] [http:trace4] [pid 3704305:tid 3704312] http_request.c(438): [client 80.70.60.12:45796]   Priority: u=0, i
[Tue Oct 07 21:02:02.118858 2025] [mapcache:debug] [pid 3704305:tid 3704312] mod_mapcache.c(458): [client 80.70.60.12:45796] mapcache quick handler hook on uri /mapcache
[Tue Oct 07 21:02:02.118925 2025] [authz_core:debug] [pid 3704305:tid 3704312] mod_authz_core.c(815): [client 80.70.60.12:45796] AH01626: authorization result of Require all granted: granted
[Tue Oct 07 21:02:02.118937 2025] [authz_core:debug] [pid 3704305:tid 3704312] mod_authz_core.c(815): [client 80.70.60.12:45796] AH01626: authorization result of <RequireAny>: granted
[Tue Oct 07 21:02:02.118946 2025] [core:trace3] [pid 3704305:tid 3704312] request.c(360): [client 80.70.60.12:45796] request authorized without authentication by access_checker_ex hook: /mapcache
[Tue Oct 07 21:02:02.119006 2025] [authz_core:debug] [pid 3704305:tid 3704312] mod_authz_core.c(815): [client 80.70.60.12:45796] AH01626: authorization result of Require all granted: granted
[Tue Oct 07 21:02:02.119019 2025] [authz_core:debug] [pid 3704305:tid 3704312] mod_authz_core.c(815): [client 80.70.60.12:45796] AH01626: authorization result of <RequireAny>: granted
[Tue Oct 07 21:02:02.119028 2025] [core:trace3] [pid 3704305:tid 3704312] request.c(360): [client 80.70.60.12:45796] request authorized without authentication by access_checker_ex hook: /mapcache
[Tue Oct 07 21:02:02.121022 2025] [http:trace3] [pid 3704305:tid 3704312] http_filters.c(1141): [client 80.70.60.12:45796] Response sent with status 404, headers:
[Tue Oct 07 21:02:02.121070 2025] [http:trace4] [pid 3704305:tid 3704312] http_filters.c(971): [client 80.70.60.12:45796]   Content-Length: 161
[Tue Oct 07 21:02:02.121080 2025] [http:trace4] [pid 3704305:tid 3704312] http_filters.c(971): [client 80.70.60.12:45796]   Keep-Alive: timeout=5, max=100
[Tue Oct 07 21:02:02.121088 2025] [http:trace4] [pid 3704305:tid 3704312] http_filters.c(971): [client 80.70.60.12:45796]   Connection: Keep-Alive
[Tue Oct 07 21:02:02.121095 2025] [http:trace4] [pid 3704305:tid 3704312] http_filters.c(971): [client 80.70.60.12:45796]   Content-Type: text/html; charset=UTF-8

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