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

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:

  1. Criteria: If Path matches one of
    • [ your desired web context path, for example: /google12345.html ]
  2. Behavior: Construct Response
    • Response Body: [content of the file]
    • Response Code: 200 OK

That's really it! Test to make sure it works as you expect, then activate in Production.

Comments

Popular posts from this blog

Domain registrar pricing comparison (2014)

How to block the Admiral anti ad-block detection message

usoclient.exe in Windows 10 wakes up my PC with Wake Source: Unknown