Apache multiviews disabled due to bad nfs performance
This commit is contained in:
parent
e344f6ac34
commit
bbf691764c
|
@ -16,13 +16,26 @@
|
|||
|
||||
<FilesMatch "\.(ttf|otf|eot|woff)$">
|
||||
<IfModule mod_headers.c>
|
||||
Header set Access-Control-Allow-Origin "*"
|
||||
Header set Access-Control-Allow-Origin "*"
|
||||
</IfModule>
|
||||
</FilesMatch>
|
||||
</Directory>
|
||||
|
||||
<Directory /var/lib/hedera-web/image-db/>
|
||||
Options Indexes FollowSymLinks MultiViews
|
||||
AllowOverride FileInfo Options
|
||||
Options +Indexes +FollowSymLinks
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
<Directory /var/lib/hedera-web/image-db/*/*>
|
||||
Options -Indexes -MultiViews +FollowSymLinks
|
||||
AllowOverride FileInfo Options
|
||||
Require all granted
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
RewriteEngine On
|
||||
RewriteBase /
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME}\.png -f
|
||||
RewriteRule ^(.+)$ %{REQUEST_URI}.png [L]
|
||||
</IfModule>
|
||||
</Directory>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.405.87) stable; urgency=low
|
||||
hedera-web (1.405.88) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hedera-web",
|
||||
"version": "1.405.87",
|
||||
"version": "1.405.88",
|
||||
"description": "Verdnatura web page",
|
||||
"license": "GPL-3.0",
|
||||
"repository": {
|
||||
|
|
|
@ -10,7 +10,7 @@ require_once (__DIR__.'/lib.php');
|
|||
* @param integer $maxHeight The maximum height of resized image in pixels
|
||||
* @param integer $maxWidth The maximum width of resized image in pixels
|
||||
* @param boolean $rewrite Wether to rewrite the destination file if it exits
|
||||
**/
|
||||
*/
|
||||
class Resize extends Vn\Lib\Method
|
||||
{
|
||||
const PARAMS = [
|
||||
|
@ -25,7 +25,6 @@ class Resize extends Vn\Lib\Method
|
|||
|
||||
function run ()
|
||||
{
|
||||
|
||||
$options = getopt ('', $params);
|
||||
|
||||
if (!$this->checkParams ($options, self::PARAMS))
|
||||
|
|
|
@ -18,18 +18,18 @@ class Sync extends Vn\Lib\Method
|
|||
$this->dataDir = $this->util->dataDir;
|
||||
}
|
||||
|
||||
function run ()
|
||||
function run ($db)
|
||||
{
|
||||
$db = $this->getSysConn ();
|
||||
|
||||
set_time_limit (0);
|
||||
$this->$trashSubdir = date ('YmdHis');
|
||||
$this->trashSubdir = date ('YmdHis');
|
||||
|
||||
$checkCount = 0;
|
||||
$query = 'SELECT DISTINCT `%3$s` FROM `%1$s`.`%2$s`
|
||||
WHERE `%3$s` IS NOT NULL AND `%3$s` != \'\'';
|
||||
|
||||
$dir = opendir ("{$this->dataDir}");
|
||||
$dir = opendir ($this->dataDir);
|
||||
|
||||
if ($dir)
|
||||
while ($schema = readdir ($dir))
|
||||
|
|
|
@ -4,7 +4,7 @@ require_once (__DIR__.'/image.php');
|
|||
|
||||
/**
|
||||
* Base class for image methods.
|
||||
**/
|
||||
*/
|
||||
class Util
|
||||
{
|
||||
var $app;
|
||||
|
@ -20,7 +20,7 @@ class Util
|
|||
* Loads information for specified schema.
|
||||
*
|
||||
* @param string $schema The schema name
|
||||
**/
|
||||
*/
|
||||
function loadInfo ($schema)
|
||||
{
|
||||
$db = $this->app->getSysConn ();
|
||||
|
|
Loading…
Reference in New Issue