Jump to content

Media servers


petert

Recommended Posts

Been trying to get Media servers working. The instructions are sadly not 100% clear.

It kinda works, if I look at the html source of a page I can see that images are requested from the ccc server, but somehow the path to where to find the image is wrong.

 

These are some of the errors I encounter.

==> access_log <==
87.x - - [29/Sep/2013:17:17:17 +0200] "GET /1-medium_default/bread-board.jpg HTTP/1.1" 404 587 "http://x/bread-board-s/14-bread-board-830-points.html" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36"

==> error_log <==
[Sun Sep 29 17:17:17 2013] [error] [client 87.x] File does not exist: /home/x/public_html/4-medium_default, referer: http://x/bread-board-s/14-bread-board-830-points.html
[Sun Sep 29 17:17:17 2013] [error] [client 87.x] File does not exist: /home/x/public_html/index.php, referer: http://x/bread-board-s/14-bread-board-830-points.html

questions:

 

1) do I have to put all the files in their directories? IE

ccc.server/img

ccc.server/themes

ccc.server/modules

The documentation just says: "Copy your media files to that host's server. This means that the CDN server must contain an exact copy of the following folders from you store's main server: /img/themes et /modules."

 

2) I copied the .htacces file from the Prestashop server to the ccc server, but that didn't help either.

http://www.prestashop.com/forums/topic/244121-setting-up-media-servers-keep-images-on-both-locations-or-not/ 

========================================

 

Sadly I am not the only one not getting this to work....

http://www.prestashop.com/forums/topic/277046-media-servers-added-cssjs-ok-but-no-product-images/

 

 

BTW: I use rsync cli and cron to update the ccc server with the changed and new files.

The cli is: 

rsync -avzPR img modules themes *@ccc1.*.*:~/public_html

You have to make sure that the user rsync runs as is allowed passwordless access to the ccc server.

Edited by petert (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...