CDNs ares used by the big websites to store static files like: images, style sheets, files to download for a bigger internet speed. The files hosted on a CDN are scattered on the CDN company servers and loaded from the closest location of the visitor.
Google App Engine as a Free CDN Limitations:
Everything has good and bad sides, but in my opinion, transforming Google App Engine in Free CDN for sure it will prove worthing your time:- Transferring files – Google App Engine is using Python and Java to transfer files, so, sometimes can make things a little difficult.
- No Software – I wasn’t able to find any software that could help me in easing the file transfer process and configuration.
Steps to Transform Google App Engine in a Free CDN:
- Download and install Python and Google App Engine SDK on your computer
- Sign up to to Google App Engine , you will need a phone number to do this.
- Create an Application and give your application a name (called “application identifier”), this needs to be unique.
- Configure Google App Engine, just open it and go to Edit – Preferences:
- Create a new application, go to File > Create New Application, Fill Application Name (should be the same as the Application identifier when you create the app engine), then choose where your file will be saved, then create the directories that you want for your files and put some example files there. For example, I have created a directory image and inserted some images there.
- Edit app.yaml, and put the directory there, mine is like this:
- Deploy the application,just press the button Deploy on the toolbar.
- Check to see if it worked, just go on http://[app-id].appspot.com/images/.
- If everything is ok modify the theme to point to the new files location.
application: cdnbitdozeversion: 1runtime: pythonapi_version: 1handlers:- url: /imagesstatic_dir: images
Comments
Post a Comment