This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Install & configuration » Cluster in eZ DFS mode with eZ DFS...
expandshrink

Cluster in eZ DFS mode with eZ DFS File Handler with ezcss_load

Cluster in eZ DFS mode with eZ DFS File Handler with ezcss_load

Thursday 06 September 2012 6:53:22 pm - 2 replies

With ezpublish in cluster mode with eZ DFS File Handler, if we use  ezcss_load to pack css files into one file, the css file is created into nfs directory, there is one row for file created with info into ezdfsfile table of cluster DB, but into html page the link to css file is for local ezpublish installation.

Into function class packFiles() of ezjscpacker.php file, the returned directory is :

        $data['http'][] = $data['custom_host'] . $data['www_dir'] . $data['cache_path'];

To test we have installed ezdemo in cluster mode.

We have follow the instruction to setup cluster mode. We have omitted something ?

Modified on Friday 07 September 2012 11:48:43 am by Antonio Patarozzi

Friday 07 September 2012 4:15:05 pm

Hi Antonio,

That is the expected behavior (front-end showing a path that appears to point to the local path). As part of the install process, you set up some extra eZ DFS rewrite rules. The last one in particular sends requests to the packed CSS file through a special script that finds and serves the file on the NFS.

RewriteRule  ^/var/([^/]+/)?storage/images-versioned/.*  /index_cluster.php [L]
RewriteRule  ^/var/([^/]+/)?storage/images/.*  /index_cluster.php [L]
RewriteRule   ^/var/([^/]+/)?cache/public/(stylesheets|javascript)  /index_cluster.php  [L]

Friday 07 September 2012 5:46:40 pm

After some debug i have resolved.

The rewriterule was setup but the configuration of ezpublish was with uri match. After changed the configuration to use host match all things have fallen into place. Now its working.

I have see into index_cluster.php file, class "dfsmysqli.php" that the prepend    of path cluster mount point was done by index_cluster.php  and not into engine template as I had initially imagined.

$dfsFilePath = CLUSTER_MOUNT_POINT_PATH . '/' . $filepath;

So i have concluded that the problem was in my configuration of the rewrite rule.

Thanks for everything.

Antonio Patarozzi

Dyensì Software

Modified on Friday 07 September 2012 5:49:52 pm by Antonio Patarozzi

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from