Commit 7c1e3b6c4882e3bf61a7aaeeb30a927b958bbd5f
1 parent
10fc9335
Exists in
master
and in
6 other branches
Inclusão de x-sendfile na config do apache da pasta docker
Showing
2 changed files
with
5 additions
and
3 deletions
Show diff stats
classesphp/mapa_openlayers.php
... | ... | @@ -436,11 +436,11 @@ if ($_GET["TIPOIMAGEM"] != "" && $_GET["TIPOIMAGEM"] != "nenhum") { |
436 | 436 | readfile($nomer); |
437 | 437 | } |
438 | 438 | } else { |
439 | + | |
439 | 440 | // cache inativo |
440 | 441 | if ($img->imagepath == "") { |
441 | 442 | ilegal(); |
442 | 443 | } |
443 | - | |
444 | 444 | // se for necessario cortar a imagem, $img->saveImage() nao funciona |
445 | 445 | if ($_SESSION["i3georendermode"] == 0 || ($_SESSION["i3georendermode"] == 1 && $cortePixels > 0)) { |
446 | 446 | $nomer = ($img->imagepath) . "temp" . nomeRand() . ".png"; | ... | ... |
docker/000-default.conf
... | ... | @@ -39,7 +39,7 @@ |
39 | 39 | Deny from all |
40 | 40 | Allow from 127.0.0.0/255.0.0.0 ::1/128 |
41 | 41 | </Directory> |
42 | - | |
42 | + | |
43 | 43 | <Directory /var/www/ms_tmp > |
44 | 44 | Order Deny,Allow |
45 | 45 | Deny from All |
... | ... | @@ -57,6 +57,8 @@ Order Deny,Allow |
57 | 57 | Deny from All |
58 | 58 | </Directory> |
59 | 59 | <Directory /var/www/i3geo/rest/ > |
60 | -AllowOverride All | |
60 | +AllowOverride All | |
61 | 61 | </Directory> |
62 | 62 | </VirtualHost> |
63 | +XSendFile on | |
64 | +XSendFilePath /tmp | ... | ... |