LoginSignup
5
1

More than 5 years have passed since last update.

CloudFrontを使ってWordPressを配信するときの、Behavior設定

Posted at

要確認

これは私の環境ですので、必要に合わせてBehaviorを追加したりキャッシュのTTLを変更したりしてください。

Behavior List

Path PatternはDefault含めてに6つ設定する。

  • *.php
  • /wp-admin/*
  • /wp-content/uploads/*
  • /wp-includes/*
  • /wp-content/*
  • Default (*)

qiita_cf_1.png

以下それぞれのBehavior設定をスクショ貼っていきます。

*.php

Whitelistには以下を設定する。

  • Authorization
  • CloudFront-Forwarded-Proto
  • CloudFront-Is-Desktop-Viewer
  • CloudFront-Is-Mobile-Viewer
  • CloudFront-Is-Tablet-Viewer
  • Host
  • Referer
  • User-Agent

qiita_cf_10.png

/wp-admin/*

Whitelistには以下を設定する。

  • Authorization
  • CloudFront-Forwarded-Proto
  • CloudFront-Is-Desktop-Viewer
  • CloudFront-Is-Mobile-Viewer
  • CloudFront-Is-Tablet-Viewer
  • Host
  • Referer
  • User-Agent

qiita_cf_11.png

/wp-content/uploads/*

Whitelistには以下を設定する。

  • Authorization
  • Host

qiita_cf_12.png

/wp-includes/*

Whitelistには以下を設定する。

  • Authorization
  • Host

qiita_cf_13.png

/wp-content/*

Whitelistには以下を設定する。

  • Authorization
  • Host

qiita_cf_14.png

Default (*)

qiita_cf_7.png

5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1