Point your browser to the Edge servers

You need to direct ("point") your local system to our staging Edge servers to test.

You need to modify your hosts file to point your system to request content from Akamai staging Edge servers, rather than your origin server. This practice is commonly referred to as spoofing.

How to

  1. Open your local hosts file in a text editor. You can typically find the hosts file as follows, based on your OS:
    • Windows: Navigate to C:\Windows\System32\drivers\etc\hosts. The directory above \system32\ might vary in your environment.
    • Mac OS: Navigate to /private/etc/hosts.
    • On Linux/Unix: Navigate to /etc/hosts.
  2. At the end of the hosts file, add an entry for your website that includes the staging IP address and your property’s domain. For example: www.example.com
  3. Save and close the hosts file.
    Note: This only applies to your local system. Also, to undo the redirection to the edge server, remove the new entry from your hosts file.
  4. On Mac OS X 10.6 and later, run the following command to flush your DNS cache. (This doesn't apply to Windows or Linux/Unix.)
    dscacheutil -flushcache
  5. Confirm that your computer points to an Edge server

If you’re using HD streaming and the hosts file is blocked by the internal network or admin:

  1. Use a command-line tool such as curl to specify the Host header on the HTTP request. For example:
    curl -i -H "host: test-i.akamaihd.net" -d "test" "http://post.test-i.akamaihd-staging.net/xxx/test/index.m3u8""
    HTTP/1.1 200 OK
    X-Akamai-Staging: EdgeSuite

    The presence of the X-Akamai-Staging response header confirms that your test request hit the Staging network.