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