FluffyCat Posted September 23, 2013 Share Posted September 23, 2013 Hi I am trying to play with setting up a media server on my subdomain. I have been looking at various instructions but finally I just went for the info in the Prestashop doc here: http://doc.prestashop.com/display/PS15/Understanding+The+Advanced+Parameters#UnderstandingTheAdvancedParameters-Mediaservers So I have copied the img, modules and themes folders to my subdomain so that the structure is: -cdn.mysite.com --img --modules --themes It seems as the javascript and css are working as expected and I also have the images from the theme as well as the ones in the img/m (suppliers?) folder displayed (they are served from cdn.mysite.com/img/m/6-m_default.png etc so this is working ok. However the product images does not work, the ones that has the format: http://cdn.mysite.com/1019-home_default/my_product.jpg I have compared with the behavior without the Media server and then the url is the same (without the subdomain): http://mysite.com/1019-home_default/my_product.jpg I have also checked the /img/ folder for the products and the images are there. So for an url that looks the same product images are failing when trying to use from the subdomain while other static content is served ok from the Media Server. Any advice on how to make this fly? Link to comment Share on other sites More sharing options...
jdcifuentes Posted October 17, 2013 Share Posted October 17, 2013 I have the same issue. Link to comment Share on other sites More sharing options...
Gregory Roussac Posted October 21, 2013 Share Posted October 21, 2013 Hi, All subdomains should point to the same directory. Do not copy any elements in another folder. Best regards Link to comment Share on other sites More sharing options...
FluffyCat Posted October 21, 2013 Author Share Posted October 21, 2013 Hi Gregory Thanks for the reply. I have tested another guide today, just pointing the new subdomains directly at my prestashop installation root and it worked perfectly. However since I am on a shared hosting I am not allowed to change the Apache config so I will get penalized for duplicate content with this setup. Due to this I think I might be forced to copy the files to the subdomain. The only thing I do not yet get is what folder structure I must have in the cdn if I must go down this road. Link to comment Share on other sites More sharing options...
buhajus Posted December 15, 2013 Share Posted December 15, 2013 Hi Gregory Thanks for the reply. I have tested another guide today, just pointing the new subdomains directly at my prestashop installation root and it worked perfectly. However since I am on a shared hosting I am not allowed to change the Apache config so I will get penalized for duplicate content with this setup. Due to this I think I might be forced to copy the files to the subdomain. The only thing I do not yet get is what folder structure I must have in the cdn if I must go down this road. FluffyCat, did you solve it? i tried this one guide http://blog.dh42.com/prestashop-and-media-servers/ but still no images... Link to comment Share on other sites More sharing options...
FluffyCat Posted December 16, 2013 Author Share Posted December 16, 2013 Hi Sorry, I gave up this track. My hosting provide said that I was not allowed to change this apache config on a shared hosting so I could not proceed. For the guide in dh42, I have seen that one. However if that is the way to do it I prefer not to, it seems like a very strange approach. I guess it might work but it looks very hard to maintain. Prestashop does suggest just using the subdomain pointing to the Prestashop install and this is ok but without solving the apache config changes I think it is not a good solution for google. So, unfortunately no good solution yet. Anyone that can make this work and produce a step by step guide that is ok also for shared hosting would be a hero. 1 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