Posts

Showing posts from March, 2018

How to serve a file from the docroot using Akamai Property Manager

Image
In some cases you might not have access to your web server (origin) docroot. This could be due to a variety of reasons, such as a Web Content Management (WCM) or Content Management System (CMS) that doesn't allow files to be served from the root path, or you may simply not have access due to content being controlled by another group. But if you control the Akamai config, you can effectively serve any file from the docroot! If you use Akamai's Property Manager, you can create a rule as outlined below. We had a case where we needed to place a Google site verification file for proving ownership in the Google Search Console (previously called Google Webmaster Tools). You can do this with other special files, like robots.txt. Here's how we created that rule: Criteria: If Path matches one of [ your desired web context path, for example: /google12345.html ] Behavior: Construct Response Response Body: [content of the file]