Jump to content

Configuring Media Server With PS 1.5.6


Recommended Posts

I am trying to use the media server option and it works on 2 of the 3 directories the directions (see below) told me to put on an S3 bucket at Amazon.

 

Images are stored in several separate folders /img -->  p --> 6 --> 9 --> 69-small_default.jpg.  Since PS is putting that image url together the edge servers don't know how to interpret that so they do this with the url

http://xxxxxxxx.cloudfront.net/69-small_default.jpg Failed to load resource: the server responded with a status of 404 (Not Found)

this is what it should be
http://xxxxxxxx.cloudfront.net/img/p/6/9/69-small_default.jpg

they leave off the /img etc. even though these directions say to do it that way from the PS docs.  

http://doc.prestashop.com/display/PS15/Understanding+The+Advanced+Parameters#UnderstandingtheAdvancedParameters-Mediaservers

I have uploaded the 3 directories to a s3 bucket.  I can't find any definitive directions on setting this up.
 

******************

Is there something else I need to do to make this work?  I have a VPS at Amazon and I am trying to use CloudFront.

 

Thanks,

 

Randal

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

Hi GenZai,

 

There is a reason there isn't much information out there.  It seems Prestashop uses a unique way of accessing images.  The image url is actually put together by a php program.  Consequently, the cdn's don't know how to reassemble the request to provide the correct url.  Some cdn's may have plugins or modules that do this automatically but I couldn't find one for the CloudFront offering through Amazon.

 

Consequently, the only way I could make it  work is to have my actual server be the origin server.  Setting it up this way the image url's are rebuilt correctly but your speed advantage is diminished considerably.

 

Therefore, doing some time tests I realized this wasn't a significant enough improvement so I have abandoned that idea altogether.

 

Hope that helps.

 

Randal

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...