felixdpg Posted April 21, 2014 Share Posted April 21, 2014 Hi all: Recently I was finding many ways to reduce the load time of my web, and looking for media server configuration. I create 3 subdomains in order to reduce the load of my shop, create symlink for this subdomains to the root folder of the shop, but, when the page load all the image, css and jscript are missing! The steps: 1. Create 3 subdomains : static1.mydomain.com, static2.mydomain.com static3.mydomain.com 2. Create symlink: ln- s rootshop /static1 ln- s rootshop /static2 ln- s rootshop /static3 3. Add this subdomains to the media server option in performance In theory when the page load all of the content are distributed across subdomains (with symlinks) but does not appear work for image, css, etc. Please, how can I solve the media server with the subdomains to reduce the load time of the shop? thanks in advance BR Felix Link to comment Share on other sites More sharing options...
bellini13 Posted April 21, 2014 Share Posted April 21, 2014 not sure why you are creating symbolic links, but ignore media server for now. what happens when you enter the following in a browser? static1.mydomain.com/README.md do you see the contents of the README.md file from the root prestashop directory? Or do you get a 404 page not found? Link to comment Share on other sites More sharing options...
felixdpg Posted April 21, 2014 Author Share Posted April 21, 2014 Hi bellini13: The problem was solved making only a symbolic link to /modules /img and /themes. Now I can see the web as I have it, but the load time was no reduce so much. Do you know a best practice to reduce the load time? thanks in advance Br Felix Link to comment Share on other sites More sharing options...
bellini13 Posted April 21, 2014 Share Posted April 21, 2014 load time for each individual resource on your server would not change by using a local media server. in fact it could increase load time. most browsers work by opening 4 connections to each different domain, and then using those 4 connections, it downloads all the media files (ie. css, js, images etc..) however by adding 3 media servers, you have now allowed the browser to open 12 more (3 * 4), for a total of 16 connections. Overall load time is reduced so long as their are enough resources available to handle 16 connections (both on the client side and the server side). Now if you used a CDN as media servers, you would have offloaded the delivery of those media files to some other remote host. This means your server has less work to do, it would use less bandwidth, cpu and memory etc.. Link to comment Share on other sites More sharing options...
Recommended Posts