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,11 +436,11 @@ if ($_GET["TIPOIMAGEM"] != "" && $_GET["TIPOIMAGEM"] != "nenhum") { | ||
436 | readfile($nomer); | 436 | readfile($nomer); |
437 | } | 437 | } |
438 | } else { | 438 | } else { |
439 | + | ||
439 | // cache inativo | 440 | // cache inativo |
440 | if ($img->imagepath == "") { | 441 | if ($img->imagepath == "") { |
441 | ilegal(); | 442 | ilegal(); |
442 | } | 443 | } |
443 | - | ||
444 | // se for necessario cortar a imagem, $img->saveImage() nao funciona | 444 | // se for necessario cortar a imagem, $img->saveImage() nao funciona |
445 | if ($_SESSION["i3georendermode"] == 0 || ($_SESSION["i3georendermode"] == 1 && $cortePixels > 0)) { | 445 | if ($_SESSION["i3georendermode"] == 0 || ($_SESSION["i3georendermode"] == 1 && $cortePixels > 0)) { |
446 | $nomer = ($img->imagepath) . "temp" . nomeRand() . ".png"; | 446 | $nomer = ($img->imagepath) . "temp" . nomeRand() . ".png"; |
docker/000-default.conf
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | Deny from all | 39 | Deny from all |
40 | Allow from 127.0.0.0/255.0.0.0 ::1/128 | 40 | Allow from 127.0.0.0/255.0.0.0 ::1/128 |
41 | </Directory> | 41 | </Directory> |
42 | - | 42 | + |
43 | <Directory /var/www/ms_tmp > | 43 | <Directory /var/www/ms_tmp > |
44 | Order Deny,Allow | 44 | Order Deny,Allow |
45 | Deny from All | 45 | Deny from All |
@@ -57,6 +57,8 @@ Order Deny,Allow | @@ -57,6 +57,8 @@ Order Deny,Allow | ||
57 | Deny from All | 57 | Deny from All |
58 | </Directory> | 58 | </Directory> |
59 | <Directory /var/www/i3geo/rest/ > | 59 | <Directory /var/www/i3geo/rest/ > |
60 | -AllowOverride All | 60 | +AllowOverride All |
61 | </Directory> | 61 | </Directory> |
62 | </VirtualHost> | 62 | </VirtualHost> |
63 | +XSendFile on | ||
64 | +XSendFilePath /tmp |