Home > Programming, Servers & Scripts >

Using CDN for Dymanic Pages (7)


06-22-2014 11:44 PM #1 vp5005 (Member)
Using CDN for Dymanic Pages

Hey STM Techies,

Need your help please. Currently I am using Beyond Hosting VPS for both my tracking and LP hosting. Lately been running more mobile offers in Europe, and wanted to speed up the load times. I really dont want to move my server location, so I was considering using CDN by MaxCDN or Cloudflare to help with the LP load times. I wanted to know if you use dynamic LP that callouts city using Maxmind GeoLite Database ( installed on my server ) or Google Maps for example, how will the CDN handle that. Will it basically copy and store the static files from the LP and serve it from the closest datacenter, and any dynamic files will be called directly from my server directly? Am I understanding correctly?


06-23-2014 12:08 AM #2 ricmed (Member)

A CDN will only help speeding up static content at most (html, css, photos and video). If calling out the city is using php with a database installed on your server, the user´s browser will still need to call the content of the php page (which will be processed on your server) and be returned to the browser. So basically the static content will be served from the location with the least latency (using a CDN) and the php page from your original server.


06-23-2014 12:13 AM #3 zeno (Administrator)

Traditional CDNs won't process PHP.

So, you will still need the PHP file to be loaded from your server so that processing of PHP code can happen.

Thus the latency in tracking between your users and your server will not change - but you can have static content like images, css, js etc load from the CDN.

Using CloudFlare over your landers is an easy way to cache this content while using PHP pages, as these will still get served from your origin.

However, I would strongly advise not putting CloudFlare over the top of your tracking domain - the caching, manipulation of headers, etc. can cause issues especially if you aren't technically inclined and since there is no content to cache, it will likely have no or a negative impact on tracking redirect speeds.

Frankly, the better solution is to run a VPS in Europe with its own tracking system instead and treat it as you do your US server.


06-23-2014 12:37 AM #4 zakariya (Member)

Quote Originally Posted by vp5005 View Post
Hey STM Techies,

Need your help please. Currently I am using Beyond Hosting VPS for both my tracking and LP hosting. Lately been running more mobile offers in Europe, and wanted to speed up the load times. I really dont want to move my server location, so I was considering using CDN by MaxCDN or Cloudflare to help with the LP load times. I wanted to know if you use dynamic LP that callouts city using Maxmind GeoLite Database ( installed on my server ) or Google Maps for example, how will the CDN handle that. Will it basically copy and store the static files from the LP and serve it from the closest datacenter, and any dynamic files will be called directly from my server directly? Am I understanding correctly?
Hello Vp5005

As i know, maxcdn is a little more powerful than cloudflare. I have maxcdn and as i understand, it just serve static files by caching them and serving the information with its points of presence that are close to the user requesting the information. So cdn takes care only of static files or you can also host a static database to cdn but not dynamic content.


06-23-2014 01:40 AM #5 vp5005 (Member)

Thanks all for your responses.

@ Zeno Yeah, I was considering the other option also, to keep everything simple, and basically just move the server over to Europe at somewhere like EuroVPS. I just am a little hesitant to migrate from Beyond. They are just awesome in every respect.


06-23-2014 02:01 AM #6 zeno (Administrator)

Don't migrate - just roll out a second VPS!

You can get a cheap VPS that will do the trick from Linode, Digital Ocean or Ramnode for $10/month. You will likely just need someone to help you set it up since they aren't managed.


06-23-2014 05:39 PM #7 caurmen (Administrator)

If you just want to host landers, you may not even need to hire someone to help set it up. The Digital Ocean LAMP Stack setup option is pretty good for basic Web serving.

If you want to install a tracker there too, though (and you may well want to) you will need some help or some patience: the Digital Ocean tutorials are excellent but it'll take a little while to get everything working.


Home > Programming, Servers & Scripts >