Title: Cloudfront
Last modified: December 5, 2016

---

# Cloudfront

 *  [malonedesigns](https://wordpress.org/support/users/malonedesigns/)
 * (@malonedesigns)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/cloudfront-2/)
 * I am trying to configure AWS cloudfront as the data source but I can’t get it
   to work. Using the other data sources works fine but not behind cloudfront. I
   have added the while list header but not sure what else to do. Any help appreciated
 * test page
    [http://new.literacyplanet.com/geotesting/](http://new.literacyplanet.com/geotesting/)
 * cloudfront config
    ⌊cloudfront config⌉
 * WP config
    ⌊wp config⌉
    -  This topic was modified 9 years, 5 months ago by [malonedesigns](https://wordpress.org/support/users/malonedesigns/).
    -  This topic was modified 9 years, 5 months ago by [malonedesigns](https://wordpress.org/support/users/malonedesigns/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/cloudfront-2/#post-8514901)
 * Hm. Upload a file with <?php var_dump($_SERVER); ?> to check if the header is
   set.
 * If it is set, but empty, then it simply couldn’t determine your country (can 
   happen in rare cases).
 * If it is not set, maybe this helps:
    [https://stackoverflow.com/questions/35605055/cant-retrieve-user-country-from-aws-cloudfront](https://stackoverflow.com/questions/35605055/cant-retrieve-user-country-from-aws-cloudfront)
   Can’t tell you more details as I didn’t use AWS yet …
 *  Thread Starter [malonedesigns](https://wordpress.org/support/users/malonedesigns/)
 * (@malonedesigns)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/cloudfront-2/#post-8517651)
 * I have uploaded the file to [http://cms-www.literacyplanet.com/headers.php](http://cms-www.literacyplanet.com/headers.php)
   I am not sure what I am looking for, thanks for your help
 *  [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * (@benjamin4)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/cloudfront-2/#post-8525443)
 * The server header that needs to be in there is called CloudFront-Viewer-Country(
   as in your first screenshot). It isn’t, so there is something that needs to be
   fixed in your AWS config.
 * Unfortunately I never used AWS yet, and the documentation doesn’t tell quite,
   so your best bet is to contact their tech support about it. Alternatively, you
   can choose a different source.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Cloudfront’ is closed to new replies.

 * ![](https://ps.w.org/geoip-detect/assets/icon-256x256.jpg?rev=978998)
 * [Geolocation IP Detection](https://wordpress.org/plugins/geoip-detect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/geoip-detect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/geoip-detect/)
 * [Active Topics](https://wordpress.org/support/plugin/geoip-detect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/geoip-detect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/geoip-detect/reviews/)

## Tags

 * [CloudFront](https://wordpress.org/support/topic-tag/cloudfront/)

 * 3 replies
 * 2 participants
 * Last reply from: [Benjamin Pick](https://wordpress.org/support/users/benjamin4/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/cloudfront-2/#post-8525443)
 * Status: not a support question