How to bypass ezpublish engine??

Author Message

Jade Tremblay

Thursday 10 March 2005 9:42:54 am

Hello everybody,

Here's my problem. I've included a flash movie (.swf) in my site's header. This flash movie download a config file from the host server (using a flash function called: "loadVariableNum()"). To determines what is the URL to get the config file, the flash movie use the base URL of the current page and append the file's name.
Ex:
config file name: fyhj.txt
URL => http://mysite.com/index.php/mysitename1
URL that appear in apache access_log once the movie try to get the config file:
URL => http://mysite.com/index.php/mysitename1/fyhj.txt

Obviously, this URL doesn't return the proper file. (404 not found!)

How could I modify ezPublish OR apache config to bypass the ezpublish engine and redirect the request "http://mysite.com/index.php/mysitename1/fyhj.txt" to the proper location "http://mysite.com/design/mysitename1/flash/fyhj.txt" (I've created a new directory under my site's design to hold flash movies)

Any idea?

Regards,

Jade Tremblay
Directeur Technologique

Perséides Technologie
www.perseidestech.net
Passez du rêve à la réalité!

Łukasz Serwatka

Thursday 10 March 2005 10:07:48 pm

Hi,

Have you read this article?
http://www.ez.no/ez_publish/documentation/incoming/developing_projects/flash/how_to_display_a_flash_movie_in_pagelayout_tpl

I hope it will help.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jade Tremblay

Friday 11 March 2005 7:57:23 am

Hello,

I have already look at post:
http://www.ez.no/ez_publish/documentation/incoming/developing_projects/flash/how_to_display_a_flash_movie_in_pagelayout_tpl
those modifications are already done, and it works fine.

My flash movie is downloaded from the web server and it is displayed correctly. Problem occur when the flash movie itself try to download a config file from the web server. The URL builded by the flash movie is based on the web page's URL. i.e.: it build an URL than contain index.php and the request is processed by th ezpublish engine.

How could I bypass ezpublish engine to fetch the config file in the proper directory?

Any idea?

Jade Tremblay
Directeur Technologique

Perséides Technologie
www.perseidestech.net
Passez du rêve à la réalité!

Bruce Morrison

Tuesday 15 March 2005 2:17:40 am

Have a look at http://ez.no/ez_publish/documentation/configuration/configuration/tips_tricks/exclude_uris_from_rewrite

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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 31 2025 03:38:02
Script start
Timing: Jan 31 2025 03:38:02
Module start 'layout'
Timing: Jan 31 2025 03:38:02
Module start 'content'
Timing: Jan 31 2025 03:38:02
Module end 'content'
Timing: Jan 31 2025 03:38:02
Script end

Main resources:

Total runtime0.0291 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1328151.2109
Module start 'layout' 0.00540.0048 739.3438220.6875
Module start 'content' 0.01020.0171 960.03131,001.8047
Module end 'content' 0.02730.0018 1,961.835937.9922
Script end 0.0291  1,999.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003010.3247140.0002
Check MTime0.00134.5104140.0001
Mysql Total
Database connection0.00082.677710.0008
Mysqli_queries0.003210.923930.0011
Looping result0.00000.051610.0000
Template Total0.00134.610.0013
Template load0.00113.671110.0011
Template processing0.00030.869610.0003
Override
Cache load0.00082.859610.0008
General
dbfile0.00206.853680.0002
String conversion0.00000.036940.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