We listen to our customers. We’re thus happy to introduce a new feature many of you have been asking for. Origin Basedir enables you to set a specific directory in your origin settings. This way, you can ensure the path to your files is hidden. Additionally, it can also help you bring order to your files.
Let me give you an example:
- You have a file, say an image, and its URL is ‘example.com/path/to/directory/image.jpg’
- With ‘example.com’ as your origin, your file is served from the URL: cdn.example.com/path/to/directory/image.jpg. This way, anyone can see the path to the directory of this file.
- Origin Basedir enables you to set your origin to ‘example.com/path/to/directory/’ so your file’s new URL would be: cdn.example.com/image.jpg. Now, only you can see the path.
Another way to look at Origin Basedir functionality is to create a specific resource for every type of files – images, stylesheets, scripts, videos, software or pretty much anything you serve through a CDN. Here’s what I mean:
- Make a directory in your host with all files and name it according to the type of the given file, e.g. “videos”
- Set the origin of a new resource to: example.com/videos/
- Optionally: set a cname of this resource “videos”
- Your videos will then be served from the URL: videos.example.com/video.mp4
Since we don’t limit our customers as to the number of CDN resources, you can create as many as you need.
We hope you’ll find this feature helpful. Make sure to let us know in the comments below. If you don’t have a CDN77 account yet, sign up now and try Origin Basedir yourself.