<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Hi,</div>
<div><br>
</div>
<div>I’ve installed my mapproxy configuration on a linux box, in /usr/local/mymapproxy. The cache dir (cache_data) is located inside the mymapproxy dir. The server is installed in an Apache web server, via mod_wsgi. Everything works fine.</div>
<div><br>
</div>
<div>For several reasons, I would like to have the cache dir located at another place. So, I’ve tried to create it in the root « /tmp » dir, in which I’ve created a « cache_data » subdir, with the same user and rights that the original cache_dir in « mymapproxy ».
The mod_wgsi conf file also gives the right accesses to /tmp/cache_data.</div>
<div><br>
</div>
<div>As a first attempt, I’v tried to put an absolute path in the « cache » section of the mapproxy.yaml configuration file. The problem is that the dir is created inside the temporary dir of the httpd server and not directly in /tmp. So it is cleared each
time the server is restarted.</div>
<div><br>
</div>
<div>Under these circumstances, as thought that I just had to make a symlink to /tmp/cache_data from within the mymapproxy dir (ln –s /tmp/cache_data .)</div>
<div><br>
</div>
<div>Unfortunately, it comes out that this does not work and I find the following error in the httpd’s error.log : No such file or directory ‘/usr/local/mymapproxy/cache_data/tile_locks’ </div>
<div><br>
</div>
<div>Is there any known limitation to the use of soft links for the cache dir ?</div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
</div>
<div>Bart</div>
</div>
</body>
</html>