Forums / Install & configuration / ezDFSFileHandler

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

eZ debug

Timing: Jan 18 2025 00:08:22
Script start
Timing: Jan 18 2025 00:08:22
Module start 'content'
Timing: Jan 18 2025 00:08:23
Module end 'content'
Timing: Jan 18 2025 00:08:23
Script end

Main resources:

Total runtime0.8894 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.7109180.8438
Module start 'content' 0.00690.7285 768.5547577.2734
Module end 'content' 0.73550.1539 1,345.8281337.3750
Script end 0.8893  1,683.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.5303210.0002
Check MTime0.00210.2370210.0001
Mysql Total
Database connection0.00090.103410.0009
Mysqli_queries0.807490.77622030.0040
Looping result0.00250.28282010.0000
Template Total0.851295.720.4256
Template load0.00200.221420.0010
Template processing0.849295.474420.4246
Template load and register function0.00020.020810.0002
states
state_id_array0.00120.139310.0012
state_identifier_array0.00250.285620.0013
Override
Cache load0.00170.1914400.0000
Sytem overhead
Fetch class attribute can translate value0.00140.156430.0005
Fetch class attribute name0.00090.102570.0001
XML
Image XML parsing0.00090.104430.0003
class_abstraction
Instantiating content class attribute0.00000.002190.0000
General
dbfile0.00310.3431280.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs