sharingsunshine Posted May 13, 2015 Share Posted May 13, 2015 (edited) 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 behttp://xxxxxxxx.cloudfront.net/img/p/6/9/69-small_default.jpgthey 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-MediaserversI 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 May 13, 2015 by sharingsunshine (see edit history) Link to comment Share on other sites More sharing options...
GenZai Posted May 16, 2015 Share Posted May 16, 2015 Have you fixed your issue ? I'd also like to use a CDN, but there is not much information on how to setup one. Thanks Link to comment Share on other sites More sharing options...
sharingsunshine Posted May 20, 2015 Author Share Posted May 20, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now