Forums / Developer / How to bypass ezpublish engine??

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

eZ debug

Timing: Jan 31 2025 01:21:08
Script start
Timing: Jan 31 2025 01:21:08
Module start 'content'
Timing: Jan 31 2025 01:21:08
Module end 'content'
Timing: Jan 31 2025 01:21:08
Script end

Main resources:

Total runtime0.2023 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.9297370.2969
Module start 'content' 0.00690.0153 958.22661,005.5313
Module end 'content' 0.02220.1800 1,963.75783,894.9609
Script end 0.2022  5,858.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00442.1932200.0002
Check MTime0.00140.6950200.0001
Mysql Total
Database connection0.00060.285310.0006
Mysqli_queries0.095547.21981410.0007
Looping result0.00150.72131390.0000
Template Total0.179688.810.1796
Template load0.00090.423710.0009
Template processing0.178888.377610.1788
Override
Cache load0.00050.264910.0005
Sytem overhead
Fetch class attribute can translate value0.00190.956110.0019
XML
Image XML parsing0.00080.415210.0008
General
dbfile0.01025.0623200.0005
String conversion0.00000.013430.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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