ezDFSFileHandler

Author Message

Andreas Dobrick

Friday 13 May 2011 6:19:07 am

Hallo Comunity.

I used the ezDFSFileHandler Doc. I didn't get it to work like it should.

After some research I get to the point that the documentation (http://doc.ez.no/eZ-Publish/Technical-manual/4.5/Features/Clustering/Setting-it-up-for-an-eZDFSFileHandler) is missing a rewrite rule.

RewriteRule ^index_cluster.php - [L]

With this rule this handler works fine. This points me to the question: Is documentation wrong or my configuration?

Thanks in advance for you help.

Andreas Dobrick

Ivo Lukac

Friday 13 May 2011 6:35:17 am

I think the docs are ok, just missing a note about different syntax for rewrite rules:

- when in virtual host you need to match:

^/index_cluster.php 

- when you are in .htaccess you need to match

^index_cluster.php 

That one slash can be a big cause for headaches :)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Andreas Dobrick

Sunday 15 May 2011 11:57:05 pm

Thanks for you replay Ivo. I'm using .htaccess and the rule works fine so far.

I need that rule to get my configuration working. That these rewrite rule isn't within documentation get's me messy and points out the question:

Do I need these rule in reason to wrong config or is the documentation just missing the rule?

Ivo Lukac

Monday 16 May 2011 2:08:20 am

Again about the slashes, did you try doc rewrite rules without slashes?:

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]

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Andreas Dobrick

Monday 16 May 2011 2:44:39 am

Thank you for your quick answer, Evo.Yes, I used documentation rewrite rules wihtout the leading slashes:

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]
RewriteRule ^index_cluster.php - [L]

Without the "RewriteRule ^index_cluster.php - [L]" - Line the index_cluster.php didn't work.

A request for a stylesheet goes to our rewrite rules and hit the rule which rewrite to index_custer.php. The following request for index_cluster.php seems to have a rewrite, too.

BOOM.

index_cluster.php goes to index.php and in reason to that I didn't get my style.

With my added index_cluster.php rule I stop rewriting from index_cluster.php to index.php - I will get my style.

Ivo Lukac

Monday 16 May 2011 2:47:45 am

I would say that the docs are missing one rewrite rule :)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 00:44:55
Script start
Timing: Jan 30 2025 00:44:55
Module start 'layout'
Timing: Jan 30 2025 00:44:55
Module start 'content'
Timing: Jan 30 2025 00:44:55
Module end 'content'
Timing: Jan 30 2025 00:44:55
Script end

Main resources:

Total runtime0.0132 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.1328151.2109
Module start 'layout' 0.00470.0020 739.343836.6563
Module start 'content' 0.00670.0051 776.000098.2969
Module end 'content' 0.01180.0014 874.296937.9766
Script end 0.0132  912.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002317.4326140.0002
Check MTime0.00117.9726140.0001
Mysql Total
Database connection0.00085.929910.0008
Mysqli_queries0.002015.368330.0007
Looping result0.00000.059510.0000
Template Total0.00107.510.0010
Template load0.00075.398010.0007
Template processing0.00032.026510.0003
Override
Cache load0.00053.872710.0005
General
dbfile0.001410.913280.0002
String conversion0.00000.037940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs