[{"id":3288,"title":"WordPress \u30b5\u30a4\u30c8\u3092 CloudFront \u3067\u914d\u4fe1\u3059\u308b\u3068 compress \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8a2d\u5b9a\u3057\u3066\u3044\u3066\u3082\u5727\u7e2e\u8ee2\u9001\u3055\u308c\u306a\u3044…","permalink":"https:\/\/dogmap.jp\/2017\/05\/26\/post-3288\/","content":"\u30bf\u30a4\u30c8\u30eb\u3067\u8a00\u3044\u5207\u3063\u3066\u307e\u3059\u304c...\r\n\r\nCloudFront \u306e\u300cCompress Objects Automatically\u300d\u3063\u3066\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u30d6\u30e9\u30a6\u30b6\u306b\u5bfe\u3057\u3066\u306f\u5727\u7e2e\u8ee2\u9001\u3092\u3057\u3066\u304f\u308c\u308b\u306f\u305a\u306a\u3093\u3067\u3059\u304c\u3001\u30aa\u30ea\u30b8\u30f3\u30b5\u30fc\u30d0\u304c WordPress \u306e\u5834\u5408\u3001\u3053\u308c\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u305b\u3093\u3002\r\ncss \u3068\u304b js \u306a\u3093\u304b\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u306f\u3061\u3083\u3093\u3068\u5727\u7e2e\u3057\u3066\u304f\u308c\u3066\u308b\u3093\u3067\u3059\u304c...\r\n\r\n\u8abf\u3079\u305f\u3068\u3053\u308d\u3001CloudFront \u3067 compress \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u6709\u52b9\u306b\u306a\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u6761\u4ef6\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002\r\n\r\n\r\n
\r\n
- The file must be of a type that CloudFront compresses.<\/li>\r\n
- The file size must be between 1,000 and 10,000,000 bytes.<\/li>\r\n
- The response must include a Content-Length header so CloudFront can determine whether the size of the file is in the range that CloudFront compresses. If the Content-Length header is missing, CloudFront won't compress the file.<\/li>\r\n
- The response must not include a Content-Encoding header.<\/li>\r\n<\/ul>\r\nServing Compressed Files - Amazon CloudFront<\/a><\/cite><\/blockquote>\r\n\r\n\u3053\u308c\u306e\u300cThe response must include a Content-Length header so CloudFront can determine...\u300d\u304c\u5f15\u3063\u304b\u304b\u3063\u3066\u308b\u3093\u3067\u3059\u306d...\r\n<\/span>\r\n\r\n\u305d\u3093\u306a\u308f\u3051\u3067\u3001Content-Length \u30d8\u30c3\u30c0\u3092\u5275\u51fa\u3057\u3066\u3084\u308c\u3070\u3061\u3083\u3093\u3068 CloudFront \u3067\u5727\u7e2e\u8ee2\u9001\u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u6709\u52b9\u306b\u306a\u308a\u307e\u3059\u3002\r\nob_start() \u3068 ob_end_flush() \u306b\u304a\u51fa\u307e\u3057\u3057\u3066\u3082\u3089\u3044\u307e\u3057\u3087\u3046\u304b\u3002\r\n\r\n\u3053\u306e\u30b5\u30a4\u30c8\u306f TwentyTwelve \u306e\u5b50\u30c6\u30fc\u30de\u3068\u3057\u3066\u4f5c\u6210\u3055\u308c\u3066\u308b\u306e\u3067\u3001\u30c6\u30fc\u30de\u306e index.php \u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002\r\n\r\nhttps:\/\/gist.github.com\/wokamoto\/e7bfaa68333a9ffad716374ecc735234\r\n\r\n\u666e\u901a\u306e\u30c6\u30fc\u30de\u306a\u3089\u3001index.php \u306e\u6700\u521d\u3067
<?php ob_start();><\/code> \u3057\u3066\u3001\u6700\u5f8c\u3067
<?php header('Content-Length: '.ob_get_length()); ob_end_flush(); ?><\/code> \u3059\u308c\u3070\u3044\u3044\u304b\u306a\u3002\r\n\u307e\u3041\u3001\u5b50\u30c6\u30fc\u30de\u306b\u3057\u3066\u30c6\u30fc\u30de\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4e0a\u8a18\u306e\u3088\u3046\u306a index.php \u3092\u7f6e\u3044\u3066\u304a\u304f\u65b9\u304c\u5f8c\u3005\u306e\u30c6\u30fc\u30de\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u6642\u3068\u304b\u697d\u306a\u306e\u3067\u3001\u305d\u306e\u65b9\u304c\u3044\u3044\u3067\u3057\u3087\u3046\u3002\r\n\r\n\u3061\u3083\u3093\u3068 gzip \u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u306d\u3002\r\n[text]$ curl --head -H \"Accept-Encoding: gzip\" https:\/\/dogmap.jp\/\r\nHTTP\/1.1 200 OK\r\nContent-Type: text\/html; charset=UTF-8\r\nConnection: keep-alive\r\nContent-Encoding: gzip\r\nDate: Fri, 26 May 2017 07:50:25 GMT\r\nServer: nginx\r\nStrict-Transport-Security: max-age=31536000; includeSubDomains; preload\r\nVary: Accept-Encoding\r\nX-Cache-Status: HIT\r\nX-Cached: Fri, 26 May 2017 07:50:09 GMT\r\nX-Cache: Miss from cloudfront\r\nVia: 1.1 2bb00e225b1b6c3d82913e7c9db706c5.cloudfront.net (CloudFront)\r\nX-Amz-Cf-Id: cFG5SBIQJjYYWwuMHX6RV-WOt77-pTKtqoI-UwLz9c2cU1O0I6nSaA==\r\n[\/text]\r\n\r\n\u73fe\u5834\u304b\u3089\u306f\u4ee5\u4e0a\u3067\u3059\u3002","excerpt":"\u30bf\u30a4\u30c8\u30eb\u3067\u8a00\u3044\u5207\u3063\u3066\u307e\u3059\u304c… CloudFront \u306e\u300cCompress Objects Automatically\u300d\u3063\u3066\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u3001\u5bfe\u5fdc\u3057\u3066\u3044\u308b\u30d6\u30e9\u30a6\u30b6\u306b\u5bfe\u3057\u3066\u306f\u5727\u7e2e\u8ee2\u9001\u3092\u3057\u3066\u304f\u308c\u308b\u306f\u305a\u306a\u3093\u3067 […]","date":"2017-05-26 16:50:57","author":"\u3092\u304b\u3082\u3068","categories":["WordPress"],"tags":["CloudFront","WordPress"]},{"id":3258,"title":"WordPress \u306b\u30d0\u30c3\u30af\u30c9\u30a2\u4ed5\u639b\u3051\u3089\u308c\u306a\u3044\u3088\u3046\u306b…","permalink":"https:\/\/dogmap.jp\/2016\/05\/10\/post-3258\/","content":"\u3044\u304f\u3089\u6c17\u3092\u3064\u3051\u3066\u3044\u3066\u3082\u3001\u4e0d\u5e78\u306b\u3057\u3066 WordPress \u306b\u30d0\u30c3\u30af\u30c9\u30a2\u3092\u4ed5\u639b\u3051\u3089\u308c\u308b\u3053\u3068\u306f\u5f80\u3005\u306b\u3057\u3066\u3042\u308b\u3082\u306e\u3067\u3059\u3002\r\n\u91cd\u8981\u306a\u306e\u306f\u65e5\u3005\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3068\u76e3\u8996\u306a\u306e\u3067\u3059\u304c\u3001\u9593\u306b\u5408\u308f\u305a\u306b\u3084\u3089\u308c\u3061\u3083\u3063\u3066\u30d0\u30c3\u30af\u30c9\u30a2\u4ed5\u639b\u3051\u3089\u308c\u308b\u3053\u3068\u3082\u3042\u308b\u3067\u3057\u3087\u3046\u3002\r\n\u5148\u65e5\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f WordPress 4.5.2 \u3067\u3082\u7d50\u69cb\u91cd\u3081\u306e XSS \u8106\u5f31\u6027\u306e\u5831\u544a\u3068\u4fee\u6b63\u304c\u884c\u308f\u308c\u307e\u3057\u305f\u306d\u3002\r\nWordPress 4.5.2 \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30ea\u30fc\u30b9<\/a>\r\n\r\n\u305d\u3093\u306a\u308f\u3051\u3067\u3001\u3072\u3055\uff5e\u3057\u3076\u308a\u306e\u30d6\u30ed\u30b0\u306f\u30d0\u30c3\u30af\u30c9\u30a2\u4ed5\u639b\u3051\u3089\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u9632\u885b\u7b56\u3068\u30bd\u30fc\u30b9\u304c\u6539\u5909\u3055\u308c\u305f\u6642\u306e\u5bfe\u5fdc\u7b56\u3067\u3059\u3002\r\n<\/span>\r\n\r\n
\u30d0\u30c3\u30af\u30c9\u30a2\u3092\u4ed5\u639b\u3051\u3089\u308c\u308b\u524d\u306e\u9632\u885b\u7b56<\/h3>\r\n\r\n
\u4e0d\u8981\u306a php \u30d5\u30a1\u30a4\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3055\u305b\u306a\u3044<\/h4>\r\nWordPress \u306e\u30d0\u30c3\u30af\u30c9\u30a2\u4ed5\u639b\u3051\u3066\u304f\u308b\u3084\u3064\u306e\u624b\u9806\u3068\u3057\u3066\u591a\u3044\u306e\u304c\u3001\u30e1\u30c7\u30a3\u30a2\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u6a5f\u80fd\u306e\u8106\u5f31\u6027\u3068\u304b\u3092\u5229\u7528\u3057\u3066 wp-conten\/uploads\/ \u4ee5\u4e0b\u306b php \u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u3044\u3066\u3044\u304d\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u3053\u3068\u3067\u8272\u3005\u60aa\u3055\u3092\u3059\u308b\u624b\u53e3\u3067\u3059\u3002\r\n\u307e\u305f\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u304c\u767a\u898b\u3055\u308c\u3066\u99c6\u9664\u3055\u308c\u305f\u3068\u3057\u3066\u3082\u826f\u3044\u3088\u3046\u306b wp-includes\/\u3001wp-admin\/includes\/ \u3068\u304b\u306b\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u3044\u3066\u304a\u304f\u3084\u3064\u3082\u3044\u307e\u3059\u3002\r\n\u306a\u306e\u3067\u3001Nginx \u3092\u4f7f\u3063\u3066\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u69d8\u306a\u8a2d\u5b9a\u3067\u3053\u308c\u3089\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u7f6e\u304b\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3042\u3052\u308b\u3068\u826f\u3044\u3067\u3059\u3002\r\nhttps:\/\/gist.github.com\/wokamoto\/8d0409af6aaf8e47cdc7487df02ebc10\r\n\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u4eee\u306b\u30d0\u30c3\u30af\u30c9\u30a2\u3092\u4ed5\u639b\u3051\u3089\u308c\u305f\u3068\u3057\u3066\u3082\u3042\u308b\u7a0b\u5ea6\u306f\u9632\u3052\u308b\u3067\u3057\u3087\u3046\u3002\r\n\r\n
\u30d7\u30e9\u30b0\u30a4\u30f3\u30fb\u30c6\u30fc\u30de\u306e\u7de8\u96c6\u6a5f\u80fd\u3092\u6bba\u3059<\/h4>\r\n\u3042\u3068\u3001\u591a\u3044\u306e\u306f\u30d6\u30eb\u30fc\u30c8\u30d5\u30a9\u30fc\u30b9\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30af\u30e9\u30c3\u30af\u3057\u3066 WordPress \u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u304b\u3089\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30c6\u30fc\u30de\u3092\u7de8\u96c6\u30fb\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u3066\u30d0\u30c3\u30af\u30c9\u30a2\u3092\u4ed5\u639b\u3051\u308b\u624b\u53e3\u3067\u3059\u3002\r\n\u3053\u308c\u306b\u95a2\u3057\u3066\u306f\u3001
define( 'DISALLOW_FILE_EDIT', true );<\/code> \u3084\u3001
define( 'DISALLOW_FILE_MODS', true );<\/code> \u3092 wp-config.php \u306b\u8ffd\u52a0\u3057\u3066\u304a\u3044\u3066\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u304b\u3089\u4f5c\u696d\u3067\u304d\u306a\u304f\u3059\u308b\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002\r\n\u203b\u4e00\u756a\u306e\u5bfe\u7b56\u306f\u30af\u30e9\u30c3\u30af\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5358\u7d14\u306a\u3082\u306e\u306b\u3057\u306a\u3044\u3053\u3068\u306a\u306e\u306f\u8a00\u3046\u307e\u3067\u3082\u3042\u308a\u307e\u305b\u3093\u304c....\r\nEditing wp-config.php « WordPress Codex<\/a>\r\n\r\n\u305f\u3060\u3001\u3053\u308c\u3092\u3084\u3063\u3061\u3083\u3046\u3068 WordPress \u306e\u5229\u70b9\u3067\u3042\u308b\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u304b\u3089\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3068\u304b\u3082\u3067\u304d\u306a\u304f\u306a\u3063\u3061\u3083\u3046\u306e\u3067\u3001\u904b\u7528\u5f62\u614b\u306b\u3042\u308f\u305b\u3066\u8003\u3048\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306d\u3002\r\n\r\n
\u7279\u5b9a\u306ePHP\u95a2\u6570\u3092\u7121\u52b9\u306b\u3059\u308b<\/h4>\r\n\u30d0\u30c3\u30af\u30c9\u30a2\u3068\u3057\u3066\u4ed5\u639b\u3051\u3089\u308c\u305f php \u3084\u30de\u30eb\u30a6\u30a7\u30a2\u3092\u542b\u3080 php \u3067\u306f\u3001\u5f80\u3005\u306b\u3057\u3066\u30bd\u30fc\u30b9\u3092\u96e3\u8aad\u5316\u3059\u308b\u305f\u3081\u306b eval() \u95a2\u6570\u3092\u4f7f\u3063\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002\r\n\u307e\u305f\u3001exec()\u3001shell_exec()\u3001system() \u306a\u3069\u306e PHP \u304b\u3089\u5916\u90e8\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u60aa\u3055\u3092\u3059\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002\r\n\u3053\u308c\u3089\u306f\u3001\u7279\u306b\u4f7f\u7528\u3057\u3066\u3044\u306a\u3044\u306e\u306a\u3089 php.ini \u306e disable-functions<\/a> \u8a2d\u5b9a\u3067\u7121\u52b9\u306b\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002\r\n\u5c11\u306a\u304f\u3068\u3082\u3001WordPress \u306e\u30b3\u30a2\u30bd\u30fc\u30b9\u3067\u306f\u3053\u308c\u3089\u306e PHP \u95a2\u6570\u306f\u4f7f\u7528\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3001\u4e00\u90e8\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u7b49\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u308c\u3089\u3092\u7121\u52b9\u306b\u3059\u308b\u5834\u5408\u306f\u81ea\u5206\u304c\u4f7f\u3063\u3066\u3044\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u30fb\u30c6\u30fc\u30de\u306e\u30bd\u30fc\u30b9\u3092\u7cbe\u67fb\u3057\u3066\u304b\u3089\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\r\n\u203b\u8ffd\u8a18: eval() \u306f\u7121\u52b9\u306b\u3067\u304d\u306a\u3044\u305d\u3046\u3067\u3059\u3002\r\nphp.ini\u3067\u95a2\u6570\u3092\u7121\u52b9\u5316\u3067\u304d\u308b\u3002\u8a00\u8a9e\u69cb\u9020\u306f\u7121\u52b9\u5316\u3067\u304d\u306a\u3044\u3002\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u95a2\u6570\u306f\u7121\u52b9\u5316\u3067\u304d\u306a\u3044\u3002<\/a>\r\n\r\n
\u81ea\u5206\u306e\u30b5\u30fc\u30d0\u304c SPAM \u9001\u4fe1\u306e\u914d\u4fe1\u5143\u306b\u3055\u308c\u3066\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3068\u304f<\/h4>\r\nmailq \u30b3\u30de\u30f3\u30c9\u3067\u30e1\u30fc\u30eb\u30ad\u30e5\u30fc\u306b\u6e9c\u307e\u3063\u305f\u30e1\u30c3\u30bb\u30fc\u30b8\u6570\u3092\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\r\n
# mailq | grep 'Total requests'<\/code><\/pre>\r\n\r\n\u305f\u3060\u3001\u3053\u3093\u306a\u3093\u6bce\u56de\u624b\u3067\u53e9\u3044\u3066\u3082\u3044\u3089\u308c\u306a\u3044\u306e\u3067 AWS \u4f7f\u3063\u3066\u308b\u5834\u5408\u306f\u3001CloudWach \u306e\u30ab\u30b9\u30bf\u30e0\u30e1\u30c8\u30ea\u30af\u30b9<\/a>\u3092\u4f7f\u3063\u3066\u5b9a\u671f\u7684\u306b\u30e1\u30fc\u30eb\u30ad\u30e5\u30fc\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u6570\u3092\u76e3\u8996\u3057\u3066\u3001\u3042\u308b\u7a0b\u5ea6\u5927\u304d\u3044\u6570\u306b\u306a\u3063\u305f\u3089\u30a2\u30e9\u30fc\u30c8\u4e0a\u3052\u308b\u3088\u3046\u306b\u3057\u3066\u3042\u3052\u308b\u3068\u826f\u3044\u3067\u3059\u3002\r\n\u30ab\u30b9\u30bf\u30e0\u30e1\u30c8\u30ea\u30af\u30b9\u306b\u30e1\u30fc\u30eb\u30ad\u30e5\u30fc\u6570\u3092\u3042\u3052\u308b\u305f\u3081\u306e\u30b7\u30a7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306f\u3053\u3093\u306a\u611f\u3058\u3002\r\nhttps:\/\/gist.github.com\/wokamoto\/6b0cc19abe53128db959db3b1455079c\r\n\r\n\u3053\u308c\u3092 crontab \u3067\u5b9a\u671f\u7684(5\u5206\u306b\u4e00\u5ea6\u7a0b\u5ea6)\u307e\u308f\u3057\u3066\u3042\u3052\u308c\u3070\u3001\u3042\u308b\u7a0b\u5ea6\u306e\u76e3\u8996\u304c\u53ef\u80fd\u3067\u3059\u306d\u3002\r\n\u30d0\u30c3\u30af\u30c9\u30a2\u4ed5\u639b\u3051\u3089\u308c\u3066 SPAM \u306e\u8e0f\u307f\u53f0\u306b\u3055\u308c\u3066\u308b\u5834\u5408\u306b\u306f\u3001\u3042\u308a\u3048\u306a\u3044\u6570\u306e mailq \u304c\u6e9c\u307e\u308b\u306f\u305a\u3067\u3059\u306e\u3067\u3002\r\n\r\nAWS \u4f7f\u3063\u3066\u306a\u3044\u5834\u5408\u306f\u3001\u95be\u5024\u4ee5\u4e0a\u306e\u30e1\u30fc\u30eb\u30ad\u30e5\u30fc\u304c\u6e9c\u307e\u3063\u3066\u305f\u3089\u30e1\u30fc\u30eb\u3059\u308b\u306a\u308a Slack \u901a\u77e5\u3059\u308b\u306a\u308a\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3042\u3052\u308c\u3070\u3044\u3044\u3068\u601d\u3046\u3088\u3002\r\n\r\n
\u30b3\u30a2\u30bd\u30fc\u30b9\u304c\u6539\u5909\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5<\/h4>\r\n\u30b3\u30a2\u30bd\u30fc\u30b9\u304c\u6539\u5909\u3055\u308c\u3066\u3044\u306a\u3044\u304b\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001wp-cli<\/a> \u3092\u4f7f\u7528\u3059\u308b\u306e\u304c\u4fbf\u5229\u3067\u3059\u3002\r\n
wp core verify-checksums<\/code> \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u30c1\u30a7\u30c3\u30af\u53ef\u80fd\u3067\u3059\u3002\r\nwp core verify-checksums<\/a>\r\n
$ wp core verify-checksums\r\nSuccess: WordPress install verifies against checksums.<\/code><\/pre>\r\n\r\n\u306a\u3093\u304b\u6539\u5909\u304c\u3042\u308b\u6642\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6559\u3048\u3066\u304f\u308c\u307e\u3059\u3002\r\n
$ wp core verify-checksums\r\nWarning: File doesn't verify against checksum: wp-load.php\r\nError: WordPress install doesn't verify against checksums.<\/code><\/pre>\r\n\r\n
\u30de\u30eb\u30a6\u30a7\u30a2\u30d5\u30a1\u30a4\u30eb\u304c\u7121\u3044\u304b\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5<\/h4>\r\n\u4e00\u756a\u826f\u3044\u306e\u306f\u30a2\u30f3\u30c1\u30a6\u30a3\u30eb\u30b9\u30bd\u30d5\u30c8\u3092\u4f7f\u3063\u3066\u691c\u7d22\u3059\u308b\u3053\u3068\u3067\u3059\u304c\u3001\u624b\u3063\u53d6\u308a\u65e9\u304f\u884c\u3046\u306b\u306f eval() \u3092\u4f7f\u3063\u3066\u308b\u3068\u3053\u308d\u304c\u7121\u3044\u304b\u3092\u3056\u3063\u3068\u78ba\u8a8d\u3059\u308b\u3053\u3068\u3067\u3059\u3002\r\n
$ cd \/path\/to\/wordpress\r\n$ find . -type f -name '*.php' | xargs grep 'eval(' | grep -v 'doubleval('\r\n$ find . -type f -name '*.php' | xargs grep 'eval\\\/'<\/code><\/pre>\r\n\u3053\u308c\u3067\u3001\u3042\u304d\u3089\u304b\u306b\u304a\u304b\u3057\u3044\u3068\u3053\u3068\u304c\u7121\u3044\u304b\u304c\u3056\u3063\u3068\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\r\n\u305f\u3060\u3001\u3053\u308c\u3060\u3051\u3060\u3068\u7279\u5b9a\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u3057\u304b\u5bfe\u5fdc\u3067\u304d\u306a\u3044\u306e\u3067\u3001\u3084\u306f\u308a\u30a2\u30f3\u30c1\u30a6\u30a3\u30eb\u30b9\u30bd\u30d5\u30c8\u306a\u3069\u3092\u4f7f\u7528\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u65b9\u304c\u3044\u3044\u3067\u3059\u3002\r\n\r\n\r\n
\u4e0d\u5e78\u306b\u3082\u6539\u5909\u3055\u308c\u3066\u3044\u305f\u3053\u3068\u304c\u308f\u304b\u3063\u305f\u5834\u5408\u306b\u5fa9\u65e7\u3055\u305b\u308b\u305f\u3081\u306e\u4f5c\u696d<\/h3>\r\n\r\n\u4e0d\u5e78\u306b\u3082\u6539\u5909\u304c\u898b\u3064\u304b\u3063\u305f\u5834\u5408\u306f\u3001WordPress \u306e\u30b3\u30a2\u30bd\u30fc\u30b9\u306b\u95a2\u3057\u3066\u306f wp-cli \u3092\u4f7f\u7528\u3059\u308c\u3070\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u6b63\u898f\u306e\u30e2\u30ce\u306b\u623b\u3059\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002\r\nhttps:\/\/gist.github.com\/wokamoto\/cc61aef7bcb88565298dea8f032f5401\r\n\u203b 1\u884c\u76ee\u306e \/path\/to\/wordpress \u306f WordPress \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002\r\n\u203b 7\u884c\u76ee\u306e
wp core download<\/code> \u30b3\u30de\u30f3\u30c9\u306e\u30d1\u30e9\u30e1\u30fc\u30bf
--version<\/code> \u3068
--locale<\/code> \u306f\u3001\u9069\u5b9c\u8aad\u307f\u66ff\u3048\u3066\u304f\u3060\u3055\u3044\u3002\r\n\r\n\u305f\u3060\u3057\u3001\u3053\u308c\u3060\u3051\u3060\u3068\u30b3\u30a2\u30bd\u30fc\u30b9\u306b\u4ed5\u639b\u3051\u3089\u308c\u305f\u6539\u5909\u3057\u304b\u623b\u3059\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\r\n\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u30c6\u30fc\u30de\u306b\u3064\u3044\u3066\u306f\u5225\u9014\u4f5c\u696d\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\r\n\r\n\u203b\u8ffd\u8a18\r\n\u3082\u3061\u308d\u3093\u3001\u3053\u308c\u3060\u3051\u3084\u3063\u3068\u304d\u3083\u5927\u4e08\u592b\u3063\u3066\u8a71\u3067\u306f\u306a\u3044\u3067\u3059\u3002\r\n\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u5bfe\u7b56\u306b\u306f\u9280\u306e\u5f3e\u4e38\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3042\u304f\u307e\u3067\u3082\u4e00\u4f8b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3054\u7406\u89e3\u304f\u3060\u3055\u3044\u3002\r\n\u8a18\u4e8b\u4e2d\u306b\u9593\u9055\u3063\u3066\u308b\u8a18\u8ff0\u304c\u3042\u308b\u3068\u304b\u6c17\u3065\u304b\u308c\u305f\u65b9\u306f\u3001\u30b3\u30e1\u30f3\u30c8\u6b04\u7b49\u3067\u6307\u6458\u3057\u3066\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002","excerpt":"\u3044\u304f\u3089\u6c17\u3092\u3064\u3051\u3066\u3044\u3066\u3082\u3001\u4e0d\u5e78\u306b\u3057\u3066 WordPress \u306b\u30d0\u30c3\u30af\u30c9\u30a2\u3092\u4ed5\u639b\u3051\u3089\u308c\u308b\u3053\u3068\u306f\u5f80\u3005\u306b\u3057\u3066\u3042\u308b\u3082\u306e\u3067\u3059\u3002 \u91cd\u8981\u306a\u306e\u306f\u65e5\u3005\u306e\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3068\u76e3\u8996\u306a\u306e\u3067\u3059\u304c\u3001\u9593\u306b\u5408\u308f\u305a\u306b\u3084\u3089\u308c\u3061\u3083\u3063\u3066\u30d0\u30c3\u30af\u30c9\u30a2\u4ed5\u639b\u3051\u3089\u308c\u308b\u3053\u3068\u3082\u3042\u308b\u3067 […]","date":"2016-05-10 13:12:43","author":"\u3092\u304b\u3082\u3068","thumbnail":"","categories":["WordPress"],"tags":["security","WordPress"]},{"id":3232,"title":"WordPress \u306e\u524d\u6bb5\u306b CloudFront \u3092\u914d\u7f6e\u3059\u308b ( AMIMOTO Advent Calendar 2015 12\u65e5\u76ee )","permalink":"https:\/\/dogmap.jp\/2015\/12\/12\/post-3232\/","content":"AMIMOTO Advent Calendar<\/a> \u306e12\u65e5\u76ee\u3067\u3059\u3002\r\n\u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306f Cloudcraft<\/a> \u3067\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u30ab\u30b3\u30a4\u30a4\uff01\r\n\r\nWordPress \u306e\u524d\u6bb5\u306b CloudFront \u3092\u7f6e\u304d\u305f\u3044\u3053\u3068\u3063\u3066\u3042\u308a\u307e\u3059\u3088\u306d\u3002\r\n\u305d\u3093\u306a\u6642\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u554f\u984c\u306b\u76f4\u9762\u3059\u308b\u304b\u3068\u601d\u308f\u308c\u307e\u3059\u3002\r\n\r\n
\r\n
- \u30ed\u30b0\u30a4\u30f3\u6642\u306f\u30d7\u30ec\u30d3\u30e5\u30fc\u753b\u9762\u3068\u304b\u3001\u5373\u5ea7\u306b\u5909\u308f\u308b\u3088\u3046\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u305b\u305f\u304f\u306a\u3044<\/li>\r\n
- Nginx \u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b CloudFront \u306e IP \u30a2\u30c9\u30ec\u30b9\u3067\u306f\u306a\u304f\u3001\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304d\u305f PC \u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u8a18\u9332\u3057\u305f\u3044<\/li>\r\n
- \u30e2\u30d0\u30a4\u30eb\u7248\u3068PC\u7248\u3067\u30c6\u30fc\u30de\u3092\u5207\u308a\u66ff\u3048\u305f\u3044\u3093\u3060\u3051\u3069...<\/li>\r\n
- publish \u3057\u305f\u3068\u304d\u306b\u3061\u3083\u3093\u3068\u53cd\u6620\u3055\u308c\u308b\u3088\u3046\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u6d88\u3057\u305f\u3044<\/li>\r\n<\/ul>\r\n\r\n\u4eca\u65e5\u306f\u3001\u3053\u308c\u3089\u306e\u304a\u60a9\u307f\u3092\u89e3\u6c7a\u3057\u3061\u3083\u304a\u3046\u304b\u306a\u3063\u3066\u611f\u3058\u3067\u3059\u3002\r\n<\/span>\r\n\r\n
\u30ed\u30b0\u30a4\u30f3\u6642\u306f\u30d7\u30ec\u30d3\u30e5\u30fc\u753b\u9762\u3068\u304b\u3001\u5373\u5ea7\u306b\u5909\u308f\u308b\u3088\u3046\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u305b\u305f\u304f\u306a\u3044<\/h3>\r\n\r\nCloudFront \u3067\u306f\u30a2\u30af\u30bb\u30b9 URL \u306b\u3088\u3063\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u65b9\u6cd5\u3092\u5909\u3048\u305f\u308a\u3001\u30aa\u30ea\u30b8\u30f3\u30b5\u30fc\u30d0\u3092\u5909\u3048\u305f\u308a\u3092 Behavior \u3063\u3066\u3068\u3053\u308d\u3067\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\r\n\u306a\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u6226\u7565\u3067 Behavior \u3092\u8a2d\u5b9a\u3057\u3066\u3042\u3052\u307e\u3057\u3087\u3046\u3002\r\n\r\n
\r\n
- *.php \u3078\u306e\u30a2\u30af\u30bb\u30b9\u306f\u3001\u307b\u307c\u30ce\u30fc\u30ad\u30e3\u30c3\u30b7\u30e5\u3067<\/li>\r\n
- \/wp-admin\/* \u306f\u7ba1\u7406\u753b\u9762\u306a\u306e\u3067\u3001\u3053\u3061\u3089\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3082\u307b\u307c\u30ce\u30fc\u30ad\u30e3\u30c3\u30b7\u30e5\u3067<\/li>\r\n
- \/wp-content\/uploads\/* \u4ee5\u4e0b\u306b\u306f\u3001\u30e1\u30c7\u30a3\u30a2\u30d5\u30a1\u30a4\u30eb\u3057\u304b\u306a\u3044\u306f\u305a\u3060\u304b\u3089\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u304d\u3064\u304f<\/li>\r\n
- \/wp-includes\/*, \/wp-content\/* \u306b\u3082\u57fa\u672c\u7684\u306b\u306f css, js, \u30a4\u30e1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3057\u304b\u516c\u958b\u3057\u3066\u306a\u3044\u306f\u305a\u306a\u306e\u3067\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u304d\u3064\u304f<\/li>\r\n
- \u4ed6\u306e URL \u3078\u306e\u30a2\u30af\u30bb\u30b9\u306b\u3064\u3044\u3066\u306f\u3001\u30ed\u30b0\u30a4\u30f3\u6642\u3068\u975e\u30ed\u30b0\u30a4\u30f3\u6642\u3092 Cookie \u3067\u5224\u65ad\u3057\u3066\u30ad\u30e3\u30c3\u30b7\u30e5<\/li>\r\n<\/ul>\r\n\r\n\u3053\u308c\u3092\u3001AWS \u30b3\u30f3\u30bd\u30fc\u30eb\u304b\u3089\u30dd\u30c1\u30dd\u30c1\u3068\u624b\u3067\u8a2d\u5b9a\u3057\u3066\u3082\u826f\u3044\u3093\u3067\u3059\u304c\u3001\u8aac\u660e\u3059\u308b\u306e\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u3057\u3001\u624b\u9806\u66f8\u304f\u306e\u3082\u5104\u52ab\u306a\u306e\u3067\u3001aws-cli \u3067 cloudfront create-distribution \u3057\u3061\u3083\u3046\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u4f5c\u3063\u3066\u304a\u304d\u307e\u3057\u305f\u3002\r\nWordPress \u306f\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u306f\u306a\u304f\u30eb\u30fc\u30c8\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u524d\u63d0\u3067\u3059\u3002\r\n[text]$ export origin_url='{ORIGIN URL HERE}'; export domain='{DOMAIN NAME HERE}'; aws cloudfront create-distribution --cli-input-json \"$(curl -l -s https:\/\/raw.githubusercontent.com\/amimoto-ami\/create-cf-dist-settings\/master\/source_dist_setting.sh | sh)\"\r\n[\/text]\r\n\r\n{ORIGIN URL HERE} \u306b\u306f\u30aa\u30ea\u30b8\u30f3\u30b5\u30fc\u30d0\u306e\u30c9\u30e1\u30a4\u30f3\u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002\r\nIP \u30a2\u30c9\u30ec\u30b9\u3067\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u306a\u3044\u306e\u3067\u30b5\u30fc\u30d0\u540d\u3092\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3001EC2 1\u53f0\u3060\u3051\u306e\u69cb\u6210\u3060\u3068\u3057\u3066\u3082 ELB \u914d\u4e0b\u306b\u3057\u3066\u304a\u3051\u3070\u3088\u3044\u3067\u3057\u3087\u3046\u3002\r\n\r\n{DOMAIN NAME HERE} \u306b\u306f\u3001\u516c\u958b URL \u3092\u66f8\u3044\u3066\u304f\u3060\u3055\u3044\u3002\r\n\r\n\u306a\u304a\u3001aws-cli \u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067 aws cloudfront \u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u306a\u3044\u306e\u3067 ~\/.aws\/config \u306e\u5148\u982d\u306b\u4ee5\u4e0b\u3092\u8ffd\u52a0\u3057\u3066\u304a\u3044\u3066\u304b\u3089\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\r\n[text][preview]\r\ncloudfront=true\r\n[\/text]\r\n\r\n\u4e0a\u8a18\u306e\u30ef\u30f3\u30e9\u30a4\u30ca\u30fc\u3067\u4f5c\u3063\u305f dogmap.jp \u306e CloudFront \u7248\u306f\u4ee5\u4e0b\u306e URL \u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002\r\nd2fe6jih9itgzn.cloudfront.net<\/a>\r\n\r\n\u3042\u3068\u306f\u3001\u50d5\u304c\u4f5c\u3063\u305f\u4ee5\u4e0b\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5165\u308c\u3066\u304a\u304f\u3068\u30d7\u30ec\u30d3\u30e5\u30fc\u30ea\u30f3\u30af\u306b post_date \u3068\u304b\u306e\u30af\u30a8\u30ea\u30b9\u30c8\u30ea\u30f3\u30b0\u304c\u8ffd\u52a0\u3055\u308c\u308b\u306e\u3067\u3001\u5e78\u305b\u306b\u306a\u308a\u307e\u3059\u3002\r\nhttps:\/\/gist.github.com\/wokamoto\/ecfd3a7ea9ef80ea1628<\/a>\r\n\r\n\r\n
Nginx \u306e\u30ed\u30b0\u30d5\u30a1\u30a4\u30eb\u306b CloudFront \u306e IP \u30a2\u30c9\u30ec\u30b9\u3067\u306f\u306a\u304f\u3001\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304d\u305f PC \u306e IP \u30a2\u30c9\u30ec\u30b9\u3092\u8a18\u9332\u3057\u305f\u3044<\/h3>\r\n\r\nNginx \u306e Real IP module<\/a> \u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u53ef\u80fd\u3067\u3059\u3002\r\n\u3053\u308c\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u7279\u5b9a\u306e IP \u30a2\u30c9\u30ec\u30b9\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092 X-Forwarded-For \u30d8\u30c3\u30c0\u306e\u5185\u5bb9\u3092\u5143\u306b\u5909\u66f4\u3057\u3066\u304f\u308c\u307e\u3059\u3002\r\n\u53c2\u8003URL: How to get the client IP when using CloudFront and nginx - Jayway<\/a>\r\n\r\nAMIMOTO \u3067\u8a2d\u5b9a\u3059\u308b\u306a\u3089\u3001\/etc\/nginx\/conf.d\/00_real_ip.conf \u3068\u3057\u3066\u4ee5\u4e0b\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u305f\u5f8c\u3067 service nginx restart \u3057\u3066\u8a2d\u5b9a\u3092\u53cd\u6620\u3057\u3066\u3042\u3052\u3066\u304f\u3060\u3055\u3044\u3002\r\n[text]# Look for client IP in the X-Forwarded-For header\r\nreal_ip_header X-Forwarded-For;\r\n\r\n# Ignore trusted IPs\r\nreal_ip_recursive on;\r\n\r\n# VPC\r\nset_real_ip_from 172.31.0.0\/16;\r\n\r\n# CloudFront\r\nset_real_ip_from 54.182.0.0\/16;\r\nset_real_ip_from 54.192.0.0\/16;\r\nset_real_ip_from 54.230.0.0\/16;\r\nset_real_ip_from 54.239.128.0\/18;\r\nset_real_ip_from 54.239.192.0\/19;\r\nset_real_ip_from 54.240.128.0\/18;\r\nset_real_ip_from 204.246.164.0\/22;\r\nset_real_ip_from 204.246.168.0\/22;\r\nset_real_ip_from 204.246.174.0\/23;\r\nset_real_ip_from 204.246.176.0\/20;\r\nset_real_ip_from 205.251.192.0\/19;\r\nset_real_ip_from 205.251.249.0\/24;\r\nset_real_ip_from 205.251.250.0\/23;\r\nset_real_ip_from 205.251.252.0\/23;\r\nset_real_ip_from 205.251.254.0\/24;\r\nset_real_ip_from 216.137.32.0\/19;\r\n\r\n# self\r\nset_real_ip_from 127.0.0.1\/32;[\/text]\r\n\r\n\u306a\u304a set_real_ip_from 172.31.0.0\/16; \u3063\u3066\u306e\u306f\u3001EC2 \u3084 ELB \u304c\u5c5e\u3057\u3066\u3044\u308b VPC \u306e\u300cVPC CIDR\u300d\u3067\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002\r\n\u3053\u308c\u3067 set_real_ip_from \u3067\u6307\u5b9a\u3057\u305f IP \u30a2\u30c9\u30ec\u30b9\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u304c\u3042\u3063\u305f\u5834\u5408\u306f\u3001nginx \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b
$remote_addr<\/code> \u3068
$binary_remote_addr<\/code> \u5909\u6570\u3092 HTTP \u30d8\u30c3\u30c0 X-Forwarded-For \u3092\u5143\u306b\u3088\u3057\u306a\u306b\u7f6e\u63db\u3057\u3066\u304f\u308c\u307e\u3059\u3002\r\n\r\n\r\n
\u30e2\u30d0\u30a4\u30eb\u7248\u3068PC\u7248\u3067\u30c6\u30fc\u30de\u3092\u5207\u308a\u66ff\u3048\u305f\u3044\u3093\u3060\u3051\u3069...<\/h3>\r\n\r\nUser-Agent \u3054\u3068\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f5c\u308b\u3088\u3046\u306b CloudFront \u3067\u8a2d\u5b9a\u3059\u308c\u3070\u826f\u3044\u3093\u3067\u3059\u304c\u3001\u305d\u3093\u306a\u3053\u3068\u3057\u305f\u3089\u307b\u307c\u30ce\u30fc\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\r\n\u6700\u521d\u306e\u624b\u9806\u3067\u4f5c\u3063\u305f CloudFront \u3067\u306f\u30aa\u30ea\u30b8\u30f3\u30b5\u30fc\u30d0\u306b\u5bfe\u3057\u3066\u3001\u4ee5\u4e0b\u306e HTTP \u30d8\u30c3\u30c0\u3092\u9001\u3063\u3066\u304f\u308c\u307e\u3059\u3002\r\n\r\n
\r\n
- CloudFront-Forwarded-Proto<\/li>\r\n
- CloudFront-Is-Desktop-Viewer<\/li>\r\n
- CloudFront-Is-Mobile-Viewer<\/li>\r\n
- CloudFront-Is-Tablet-Viewer<\/li>\r\n
- Host<\/li>\r\n<\/li>\r\n\r\n\u52d8\u304c\u826f\u3044\u4eba\u306a\u3089\u308f\u304b\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3001PC\u3001\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3001\u30bf\u30d6\u30ec\u30c3\u30c8\u306e User-Agent \u3092 CloudFront \u304c\u5224\u65ad\u3057\u3066\u3001\u305d\u308c\u305e\u308c PC \u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306a\u3089 CloudFront-Is-Desktop-Viewer \u304c true \u306b\u3001\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306a\u3089 CloudFront-Is-Mobile-Viewer \u304c true \u306b\u3001\u30bf\u30d6\u30ec\u30c3\u30c8\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306a\u3089 CloudFront-Is-Tablet-Viewer \u304c true \u306b\u306a\u308a\u307e\u3059\u3002\r\nAMIMOTO \u3067\u306f\u3001PC\u30fb\u30e2\u30d0\u30a4\u30eb\u306e\u30c6\u30fc\u30de\u5207\u308a\u66ff\u3048\u306b\u306f Nginx Mobile Theme \u30d7\u30e9\u30b0\u30a4\u30f3<\/a>\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002\r\n\u53c2\u8003URL: Nginx Mobile Theme \u2013 Nginx\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u4e0b\u3067\u52d5\u4f5c\u3059\u308b\u30e2\u30d0\u30a4\u30eb\u7528\u306e\u30c6\u30fc\u30de\u5207\u308a\u66ff\u3048\u30d7\u30e9\u30b0\u30a4\u30f3<\/a>\r\n\r\n\u3053\u306e Nginx Mobile Theme \u30d7\u30e9\u30b0\u30a4\u30f3\u3067 User-Agent \u3067\u306f\u306a\u304f\u3001CloudFront-Is-Mobile-Viewer \u3092\u4f7f\u3063\u3066\u5207\u308a\u66ff\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f Nginx \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n[text] set $mobile '';\r\n include \/etc\/nginx\/mobile-detect;\r\n if ( $http_cloudfront_is_mobile_viewer = 'true' ) {\r\n set $mobile '@smartphone';\r\n }\r\n[\/text]\r\n\u203b CloudFront-Is-Mobile-Viewer \u30d8\u30c3\u30c0\u306e\u5185\u5bb9\u306f nginx \u5185\u306e $http_cloudfront_is_mobile_viewer \u5909\u6570\u3067\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\r\n\r\n\r\n
publish \u3057\u305f\u3068\u304d\u306b\u3061\u3083\u3093\u3068\u53cd\u6620\u3055\u308c\u308b\u3088\u3046\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u6d88\u3057\u305f\u3044<\/h3>\r\n\r\n\u3053\u308c\u306f\u3001digitalcube \u304b\u3089\u30d7\u30e9\u30b0\u30a4\u30f3\u51fa\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u308c\u4f7f\u3046\u306e\u304c\u7c21\u5358\u3067\u3059\u3002\r\n\u4f7f\u3044\u65b9\u306f\u3001\u305d\u306e\u3046\u3061\u4f5c\u8005\u304c\u89e3\u8aac\u3057\u3066\u304f\u308c\u308b\u3067\u3057\u3087\u3046\u3002\r\nC3 Cloudfront Clear Cache<\/a>\r\n\r\n\u305d\u308c\u3067\u306f\u3001\u826f\u3044 CloudFront \u30e9\u30a4\u30d5\u3092\uff01","excerpt":"AMIMOTO Advent Calendar \u306e12\u65e5\u76ee\u3067\u3059\u3002 \u30a2\u30a4\u30ad\u30e3\u30c3\u30c1\u753b\u50cf\u306f Cloudcraft \u3067\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002\u30ab\u30b3\u30a4\u30a4\uff01 WordPress \u306e\u524d\u6bb5\u306b CloudFront \u3092\u7f6e\u304d\u305f\u3044\u3053\u3068\u3063\u3066\u3042\u308a\u307e\u3059\u3088\u306d […]","date":"2015-12-12 15:00:41","author":"\u3092\u304b\u3082\u3068","thumbnail":"","categories":["AMIMOTO"],"tags":["AMIMOTO","AWS","CloudFront","WordPress"]},{"id":3217,"title":"Let’s Encrypt \u3067\u304a\u624b\u8efd\u306bSSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3059\u308b ( AMIMOTO Advent Calendar 2015 5\u65e5\u76ee )","permalink":"https:\/\/dogmap.jp\/2015\/12\/05\/post-3217\/","content":"AMIMOTO Advent Calendar<\/a> \u306e5\u65e5\u76ee\u3067\u3059\u3002\r\n\u306a\u3093\u304b\u3001\u307b\u3093\u306e\u3061\u3087\u3063\u3068\u524d\u306e\u8a18\u4e8b\u304c wp-cli Advent Calendar 2014 \u3067\u3059\u306d\u3002\r\n\u6708\u65e5\u304c\u305f\u3064\u306e\u306f\u65e9\u3044\u3082\u3093\u3060\u3002\r\n\r\nHTTP\/2\u306e\u767b\u5834\u3067\u3001\u4fc4\u7136\u6ce8\u76ee\u3092\u6d74\u3073\u3066\u304d\u305fSSL\u8a3c\u660e\u66f8\u3067\u3059\u304c\u3001\u500b\u4eba\u3067\u5c0e\u5165\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3044\u308d\u3044\u308d\u3068\u30cf\u30fc\u30c9\u30eb\u9ad8\u3044\u306e\u3082\u4e8b\u5b9f\u3067\u3059\u3002\r\n\u3044\u307e\u307e\u3067\u306f\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ad\u30fc\u4f5c\u3063\u3066\u3001\u305d\u306e\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ad\u30fc\u304b\u3089 CSR \u4f5c\u6210\u3057\u3066\u3001CSR \u3092\u8a8d\u8a3c\u5c40\u306b\u63d0\u51fa\u3057\u3066\u3001\u8a8d\u8a3c\u5c40\u306b\u5bfe\u3059\u308b\u30c9\u30e1\u30a4\u30f3\u4fdd\u6301\u8a3c\u660e\u3092\u3057\u3066\u3001\u8a8d\u8a3c\u3055\u308c\u305f\u3089\u9001\u3089\u308c\u3066\u304d\u305fSSL\u8a3c\u660e\u66f8\u3092 Web \u30b5\u30fc\u30d0\u306b\u8a2d\u5b9a\u3057\u3066....\r\n\u3057\u304b\u3082\u3001\u7d50\u69cb\u304a\u9ad8\u3044( \u307e\u3041\u3001\u5e74\u95932,000\u5186\u304f\u3089\u3044\u306e\u7269\u3082\u3042\u308a\u307e\u3059\u304c...)\r\n\r\n\u3057\u304b\u3057\u3001\u305d\u3093\u306a\u50d5\u3089\u306e\u60a9\u307f\u3092\u89e3\u6c7a\u3057\u3066\u304f\u308c\u308b\u7121\u6599\u3067\u30c8\u30f3\u30c7\u30e2\u306a\u304f\u7c21\u5358\u306bSSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3067\u304d\u308b\u30b5\u30fc\u30d3\u30b9\u304c\u3064\u3044\u306b\u958b\u59cb\u3055\u308c\u307e\u3057\u305f\uff01\r\n\u305d\u306e\u540d\u3082 Let's Encrypt<\/a> !\r\n\r\nLet's Encrypt \u3092\u4f7f\u3063\u3066 dogmap.jp \u306e SSL \u8a3c\u660e\u66f8\u53d6\u5f97\u3057\u3066 HTTP\/2 \u5bfe\u5fdc\u3057\u305f\u3093\u3067\u3059\u304c\u3001\u3053\u308c\u304c\u3073\u3063\u304f\u308a\u307d\u3093\u306a\u304f\u3089\u3044\u7c21\u5358\u3060\u3063\u305f\u3093\u3067\u7d39\u4ecb\u3057\u307e\u3059\u3002\r\n\u53c2\u8003URL: Docker\u3067Let\u2019s Encrypt\u3057\u3088\u3063\u304b<\/a> @sawanoboly<\/a>\r\n<\/span>\r\n\r\n\u307e\u3041\u3001\u306e\u307c\u308a\u3093\u306e\u8a18\u4e8b\u3092\u8aad\u3093\u3067\u3082\u3089\u3048\u3070\u308f\u304b\u308a\u3084\u3059\u3044\u3093\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u3082\u7d39\u4ecb\u3057\u307e\u3059\u3002\r\n\u5bfe\u8c61\u306f AMIMOTO HTTP\/2<\/a> \u3092\u60f3\u5b9a\u3057\u3066\u307e\u3059\u304c\u3001\u4ed6\u306e\u30d7\u30ed\u30c0\u30af\u30c8\u3067\u3082\u3084\u308a\u304b\u305f\u5909\u308f\u3089\u306a\u3044\u3063\u3059\u3002\r\n\r\n\u624b\u9806\u3068\u3057\u3066\u306f\r\n
\r\n
- Docker \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u958b\u59cb\u3059\u308b<\/li>\r\n
- Docker \u3067 letsencrypt \u30b3\u30de\u30f3\u30c9\u5b9f\u884c<\/li>\r\n
- Nginx \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u3066\u3001\u518d\u8d77\u52d5\u3059\u308b<\/li>\r\n<\/ul>\r\n\u3053\u308c\u3060\u3051\u3067\u3059\u3002\r\n\r\n
Docker \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u958b\u59cb\u3059\u308b<\/h3>\r\n\r\n\u307e\u305a\u306f\u3001\u8d77\u52d5\u6e08\u307f\u306e AMIMOTO \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b SSH \u3067\u63a5\u7d9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3057\u306a\u304d\u3083\u4f55\u3082\u306f\u3058\u307e\u3089\u306a\u3044\u3063\u3059\u3002\r\nSSH \u63a5\u7d9a\u3057\u305f\u3089\u3001\u304a\u3082\u3080\u308d\u306b
sudo su -<\/code> \u3068\u6253\u3063\u3066 root \u306b\u306a\u3063\u3061\u3083\u3044\u307e\u3057\u3087\u3046\u3002\r\n\u305d\u306e\u5f8c\u3001yum \u3067 Docker \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u958b\u59cb\u3057\u307e\u3059\u3002\r\n\r\n[text]$ sudo su -\r\n# yum -y install docker\r\n# service docker start[\/text]\r\n\r\n
Docker \u3067 letsencrypt \u30b3\u30de\u30f3\u30c9\u5b9f\u884c<\/h3>\r\n\r\nletsencrypt \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u305f\u6642\u306b\u3001\u540c\u3058\u30b5\u30fc\u30d0\u4e0a\u3067 80 \u3092 listen \u3057\u3066\u308b\u3068\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002\r\n[text]An unexpected error occurred:\r\nThe request message was malformed :: Error creating new authz :: Name does not end in a public suffix\r\nPlease see the logfiles in \/var\/log\/letsencrypt for more details.[\/text]\r\n\r\nAMIMOTO AMI \u3067\u306f\u3001Nginx \u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u307e\u305a\u3053\u308c\u3092\u505c\u6b62\u3057\u307e\u3059\u3002\r\n\r\n[text]# service monit stop\r\n# service nginx stop[\/text]\r\n\u203b monit \u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u306f nginx \u30d7\u30ed\u30bb\u30b9\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b\u3092\u76e3\u8996\u3057\u3066\u3001\u30d7\u30ed\u30bb\u30b9\u304c\u843d\u3061\u3066\u3044\u308b\u5834\u5408\u306f\u81ea\u52d5\u7684\u306b\u5fa9\u65e7\u3055\u305b\u308b\u306e\u3067\u5148\u306b\u6b62\u3081\u3066\u304a\u304d\u307e\u3059\u3002\r\n\r\n\u305d\u306e\u5f8c\u3001Docker \u3067 letsencrypt \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\r\n\r\n[text]# docker run -it --rm -p 443:443 --name letsencrypt \\\r\n -v \"\/etc\/letsencrypt:\/etc\/letsencrypt\" \\\r\n -v \"\/var\/lib\/letsencrypt:\/var\/lib\/letsencrypt\" \\\r\n quay.io\/letsencrypt\/letsencrypt:latest auth[\/text]\r\n\r\n\u3057\u3070\u3089\u304f\u5f85\u3064\u3068\u3001\u4ee5\u4e0b\u306e\u69d8\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001E-Mail \u30a2\u30c9\u30ec\u30b9\u3092\u5165\u529b\u3057\u3066 enter\u3002\r\n<\/a>\r\n\r\n\u898f\u7d04\u306b\u540c\u610f\u3057\u3066\u306d\u3063\u3066\u8868\u793a\u3055\u308c\u308b\u306e\u3067 Agree \u3092\u9078\u3093\u3067 enter\u3002\r\n<\/a>\r\n\r\n\u30c9\u30e1\u30a4\u30f3\u540d\u5165\u529b\u3057\u3066\u306d\u3063\u3066\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3001SSL\u8a3c\u660e\u66f8\u3092\u53d6\u5f97\u3057\u305f\u3044\u30c9\u30e1\u30a4\u30f3\u540d\u3092\u5165\u529b\u3057\u3066 enter\u3002\r\n<\/a>\r\n\r\n\u305d\u3046\u3059\u3063\u3068 SSL \u8a3c\u660e\u66f8\u304c\u3067\u304d\u305f\u305c\uff01\u3063\u3066\u3001\u3054\u304d\u3052\u3093\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002\r\n[text]IMPORTANT NOTES:\r\n - If you lose your account credentials, you can recover through\r\n e-mails sent to wokamoto@digitalcube.jp.\r\n - Congratulations! Your certificate and chain have been saved at\r\n \/etc\/letsencrypt\/live\/dogmap.jp\/fullchain.pem. Your cert will\r\n expire on 2016-03-03. To obtain a new version of the certificate in\r\n the future, simply run Let's Encrypt again.\r\n - Your account credentials have been saved in your Let's Encrypt\r\n configuration directory at \/etc\/letsencrypt. You should make a\r\n secure backup of this folder now. This configuration directory will\r\n also contain certificates and private keys obtained by Let's\r\n Encrypt so making regular backups of this folder is ideal.\r\n - If you like Let's Encrypt, please consider supporting our work by:\r\n\r\n Donating to ISRG \/ Let's Encrypt: https:\/\/letsencrypt.org\/donate\r\n Donating to EFF: https:\/\/eff.org\/donate-le[\/text]\r\n\r\n\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3082\u66f8\u3044\u3066\u3042\u308b\u3051\u3069\u3001\u8a3c\u660e\u66f8\u306e\u6709\u52b9\u671f\u9650\u306f3\u30f6\u6708\u3068\u3061\u3087\u3063\u3068\u77ed\u3081\u306a\u306e\u3067\u3001\u6709\u52b9\u671f\u9650\u304c\u5207\u308c\u308b\u524d\u306b\u66f4\u65b0\u3057\u3066\u3042\u3052\u3066\u304f\u3060\u3055\u3044\u3002\r\n\r\n\u53c2\u7167\u5143\u306e @sawanobory \u304c\u66f8\u3044\u305f\u8a18\u4e8b\u3060\u3068\u3001\u3053\u306e\u3042\u3068\u300cJSON\u3092Web\u30b5\u30fc\u30d0\u3067\u8fd4\u3057\u3066\u304f\u308c\u3068\u8a00\u308f\u308c\u308b\u300d\u3089\u3057\u3044\u3093\u3060\u3051\u3069\u3001\u50d5\u306e\u3084\u3063\u305f\u6642\u306f\u305d\u308c\u3059\u3089\u3082\u51fa\u306a\u304b\u3063\u305f\u3002\r\nLet's Encrypt \u306e\u30d9\u30fc\u30bf\u304c\u53d6\u308c\u3066\u3001\u30d1\u30d6\u30ea\u30c3\u30af\u30d9\u30fc\u30bf\u306b\u306a\u3063\u305f\u304b\u3089\u4ed5\u69d8\u304c\u5909\u308f\u3063\u305f\u306e\u304b\u306a\uff1f\r\n\r\nletsencrypt \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u524d\u306b\u505c\u6b62\u3057\u3066\u3044\u305f monit\u3001nginx \u3092\u518d\u958b\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002\r\n\r\n[text]# service nginx start\r\n# service monit start[\/text]\r\n\r\n\u307e\u305f\u3001Docker \u3082\u505c\u6b62\u3057\u3066\u304a\u3044\u3066\u3082\u826f\u3044\u3067\u3059\u3002\r\n\r\n[text]# service docker stop[\/text]\r\n\r\n
Nginx \u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4fee\u6b63\u3057\u3066\u3001\u518d\u8d77\u52d5\u3059\u308b<\/h3>\r\n\r\n\u4e0a\u306e\u624b\u9806\u3067\u4f5c\u6210\u3055\u308c\u305f SSL \u8a3c\u660e\u66f8\u306f
\/etc\/letsencrypt\/live\/{\u30c9\u30e1\u30a4\u30f3\u540d}<\/code> \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4f5c\u6210\u3055\u308c\u3066\u307e\u3059\u3002\r\n
\r\n
- cert.pem - SSL\u8a3c\u660e\u66f8<\/li>\r\n
- chain.pem - \u4e2d\u9593CA\u8a3c\u660e\u66f8<\/li>\r\n
- fullchain.pem - SSL\u8a3c\u660e\u66f8 + \u4e2d\u9593CA\u8a3c\u660e\u66f8<\/li>\r\n
- privkey.pem - \u79d8\u5bc6\u9375<\/li>\r\n<\/ul>\r\n\r\nNginx \u3067\u8a2d\u5b9a\u3059\u308b\u3068\u304d\u306b\u5fc5\u8981\u306a\u306e\u306f
fullchain.pem<\/code> \u3068
privkey.pem<\/code> \u3067\u3059\u3002\r\nHTTP\/2 AMIMOTO \u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001
\/etc\/nginx\/conf.d\/default-ssl.conf<\/code> \u306e
ssl_certificate<\/code> \u3068
ssl_certificate_key<\/code> \u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4fee\u6b63\u3057\u3066\u304f\u3060\u3055\u3044\u3002\r\n\r\n[text] ssl_certificate \/etc\/letsencrypt\/live\/{\u30c9\u30e1\u30a4\u30f3\u540d}\/fullchain.pem;\r\n ssl_certificate_key \/etc\/letsencrypt\/live\/{\u30c9\u30e1\u30a4\u30f3\u540d}\/privkey.pem;[\/text]\r\n\u203b {\u30c9\u30e1\u30a4\u30f3\u540d} \u306f\u9069\u5b9c\u7f6e\u63db\u3057\u3066\u306d\u3002\u4f8b\u3048\u3070 dogmap.jp \u306a\u3089
\/etc\/letsencrypt\/live\/dogmap.jp\/<\/code> \u3067\u3059\u3002\r\n\r\nHTTP\/2 AMIMOTO \u3058\u3083\u306a\u3044\u5834\u5408\u306f\u3001
\/etc\/nginx\/conf.d\/default.conf<\/code> \u3092
\/etc\/nginx\/conf.d\/default-ssl.conf<\/code> \u3068\u304b\u3063\u3066\u540d\u524d\u3067\u30b3\u30d4\u30fc\u3057\u3066\u304b\u3089\u3002\r\n\u3053\u3093\u306a\u611f\u3058\u306b\u4fee\u6b63\u3057\u307e\u3057\u3087\u3046\u3002\r\n\r\n[text]server {\r\n listen 443 ssl;\r\n server_name _;\r\n root \/var\/www\/vhosts\/{instance_id};\r\n index index.html index.htm;\r\n charset utf-8;\r\n\r\n ssl on;\r\n ssl_certificate \/etc\/letsencrypt\/live\/{\u30c9\u30e1\u30a4\u30f3\u540d}\/fullchain.pem;\r\n ssl_certificate_key \/etc\/letsencrypt\/live\/{\u30c9\u30e1\u30a4\u30f3\u540d}\/privkey.pem;\r\n\r\n ssl_protocols TLSv1 TLSv1.1 TLSv1.2;\r\n ssl_prefer_server_ciphers on;\r\n ssl_ciphers AESGCM:HIGH:!aNULL:!MD5;\r\n ssl_session_cache shared:SSL:10m;\r\n ssl_session_timeout 5m;\r\n[\/text]\r\n\r\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u4fee\u6b63\u3057\u305f\u3089
service nginx restart<\/code> \u3067 nginx \u3092\u518d\u8d77\u52d5\u3057\u3066\u3001\u8a2d\u5b9a\u3092\u53cd\u6620\u3057\u307e\u3057\u3087\u3046\u3002\r\n\u307e\u305f\u3001\u901a\u5e38\u306e AMIMOTO AMI \u3092\u4f7f\u3063\u3066\u3044\u3066 HTTP\/2 \u5bfe\u5fdc\u306b\u3057\u305f\u3044\u5834\u5408\u306f digitalcube<\/a> \u304c HTTP\/2 AMIMOTO \u7528\u306b\u7f6e\u3044\u3066\u3044\u308b nginx 1.9.7 \u306e rpm \u3092\u4f7f\u3063\u3066\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002\r\n\r\n[text]# rpm -Uvh https:\/\/s3-ap-northeast-1.amazonaws.com\/nginx-next-amimoto\/nginx-1.9.7-1.amzn1.amimoto.x86_64.rpm[\/text]\r\n\r\n\u305d\u306e\u4e0a\u3067
default-ssl.conf<\/code> \u306e
listen 443 ssl;<\/code> \u306e\u90e8\u5206\u3092
listen 443 ssl http2;<\/code> \u306b\u3057\u3066\u304b\u3089 nginx \u518d\u8d77\u52d5\u3059\u308c\u3070\u3001\u3042\u306a\u305f\u306e\u30b5\u30a4\u30c8\u3082 HTTP\/2 !\r\n\r\n\u305d\u308c\u3067\u306f\u3001\u3088\u3044 HTTP\/2 \u30e9\u30a4\u30d5\u3092\uff01\r\n\r\n
\u304a\u307e\u3051\uff1aaws-cli \u3092\u4f7f\u7528\u3057\u3066\u3001CloudFront \u7528\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9<\/h3>\r\n\r\n\u5fd8\u308c\u3063\u307d\u3044\u3001\u50d5\u306e\u305f\u3081\u306e\u5099\u5fd8\u9332\u3002\r\n\r\nLet's Encrypt \u3067\u4f5c\u3063\u305f SSL \u8a3c\u660e\u66f8\u3092 aws-cli \u3092\u4f7f\u7528\u3057\u3066 CloudFront \u7528\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u306b\u306f...\r\n[text]# cd \/etc\/letsencrypt\/live\/{\u30c9\u30e1\u30a4\u30f3\u540d}\r\n# aws iam \\\r\n upload-server-certificate \\\r\n --server-certificate-name {\u8a3c\u660e\u66f8\u306e\u540d\u524d} \\\r\n --certificate-body file:\/\/cert.pem \\\r\n --private-key file:\/\/privkey.pem \\\r\n --certificate-chain file:\/\/chain.pem \\\r\n --path \/cloudfront\/[\/text]\r\n\r\n\u524a\u9664\u3059\u308b\u306b\u306f\r\n[text]# aws iam \\\r\n delete-server-certificate \\\r\n --server-certificate-name {\u8a3c\u660e\u66f8\u306e\u540d\u524d}[\/text]","excerpt":"AMIMOTO Advent Calendar \u306e5\u65e5\u76ee\u3067\u3059\u3002 \u306a\u3093\u304b\u3001\u307b\u3093\u306e\u3061\u3087\u3063\u3068\u524d\u306e\u8a18\u4e8b\u304c wp-cli Advent Calendar 2014 \u3067\u3059\u306d\u3002 \u6708\u65e5\u304c\u305f\u3064\u306e\u306f\u65e9\u3044\u3082\u3093\u3060\u3002 HTTP\/2\u306e\u767b\u5834\u3067\u3001\u4fc4\u7136\u6ce8 […]","date":"2015-12-05 09:13:38","author":"\u3092\u304b\u3082\u3068","thumbnail":"","categories":["AMIMOTO"],"tags":["AMIMOTO","HTTP\/2","letsencrypt","ssl"]},{"id":3172,"title":"\u81ea\u4f5c\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u8ffd\u52a0\u3057\u305f wp-cli \u30b3\u30de\u30f3\u30c9\u306e\u51fa\u529b\u7d50\u679c\u3092\u6574\u5f62\u3057\u3088\u3046 ( WP-CLI Advent Calendar 2014 18\u65e5\u76ee )","permalink":"https:\/\/dogmap.jp\/2014\/12\/18\/wp-cli-advent-calendar-2014-day-18\/","content":"WP-CLI\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc<\/a>\u306e18\u65e5\u76ee\u3067\u3059\u3002\r\n\u6628\u65e5\u306f @tecking<\/a> \u3055\u3093\u306e\u300c\u3072\u3063\u304f\u308a\u8fd4\u308b\u304f\u3089\u3044\u8d85\u7d76\u4fbf\u5229\u306a wp media regenerate<\/a>\u300d\u3067\u3057\u305f\u3002\r\n\u4eca\u56de\u306f\u524d\u56de<\/a>\u306e\u7d9a\u304d\u3067\u3059\u3002\r\n\r\n\u524d\u56de wp-cli \u5bfe\u5fdc\u3055\u305b\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3057\u305f\u304c\u3001\u4e00\u70b9\u51fa\u529b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306b\u3064\u3044\u3066\u89e6\u308c\u3066\u3044\u307e\u305b\u3093\u3067\u3057\u305f\u3002\r\n\u3066\u3053\u3068\u3067\u3001\u4eca\u56de\u306f\u305d\u306e\u3078\u3093\u306b\u3064\u3044\u3066\r\n\r\n<\/span>\r\n\r\n\u3068\u8a00\u3063\u3066\u3082\u3001\u4f55\u3082\u96e3\u3057\u3044\u3053\u3068\u306f\u306a\u304f\u3066
\\WP_CLI\\Utils\\format_items( $format, $items, $fields )<\/code> \u3092\u4f7f\u7528\u3059\u308b\u3060\u3051\u3067\u3059\u3002\r\n\u30d1\u30e9\u30e1\u30fc\u30bf\u306f\u4ee5\u4e0b\u306e\u901a\u308a\r\n
\r\n
- @param string $format Format to use: 'table', 'json', 'csv', 'ids', 'count'<\/li>\r\n
- @param array $items Data to output<\/li>\r\n
- @param array|string $fields Named fields for each item of data. Can be array or comma-separated list<\/li>\r\n<\/ul>\r\n\r\n\u9078\u3079\u308b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306f 'table', 'json', 'csv', 'ids', 'count' \u3001\u3069\u306e\u5f62\u5f0f\u3092\u4f7f\u7528\u3059\u308b\u304b\u3092\u7b2c\u4e00\u5f15\u6570\u306b\u6e21\u3057\u307e\u3059\u3002\r\n\u7b2c\u4e8c\u5f15\u6570\u306b\u306f\u5b9f\u969b\u306b\u8868\u793a\u3059\u308b\u30c7\u30fc\u30bf\u3092\u3001\u7b2c\u4e09\u5f15\u6570\u306b\u306f\u30c7\u30fc\u30bf\u306b\u4ed8\u4e0e\u3059\u308b\u30e9\u30d9\u30eb\u3092\u6e21\u3057\u307e\u3059\u3002\r\nNginx Cache Controler<\/a> \u3067\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3057\u3066\u3044\u307e\u3059\u3002\r\n[php]\/**\r\n * Show list of all proxy caches.\r\n *\r\n * ## EXAMPLES\r\n *\r\n * wp nginx list\r\n *\r\n * @subcommand list\r\n *\/\r\nfunction _list($args, $assoc_args) {\r\n $format = strtolower(isset($assoc_args['format']) ? $assoc_args['format'] : 'csv');\r\n\r\n $nginxchampuru = NginxChampuru::get_instance();\r\n $items = (array)$nginxchampuru->get_cached_objects();\r\n $fields = array( \"cache_id\", \"post_type\", \"cache_url\", \"cache_saved\");\r\n\r\n switch ($format) {\r\n case 'csv':\r\n case 'json':\r\n \\WP_CLI\\Utils\\format_items( $format, $items, $fields );\r\n break;\r\n default:\r\n WP_CLI::error(sprintf('Invalid format \"%s\".', $format));\r\n }\r\n exit;\r\n}[\/php]\r\n\r\n\u7c21\u5358\u3067\u3059\u306d\u3002\r\n\r\nwp-cli \u3067\u306f\u3001\u4ed6\u306b\u3082\u5229\u7528\u3057\u3084\u3059\u305d\u3046\u306a\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u95a2\u6570\u3092\u7528\u610f\u3057\u3066\u304a\u3044\u3066\u304f\u308c\u3066\u3044\u307e\u3059\u3002\r\n
ake_progress_bar( $message, $count )<\/code> \u3068\u304b\u3001
http_request( $method, $url, $data = null, $headers = array(), $options = array() )<\/code> \u3068\u304b\u826f\u3055\u3052\u306a\u95a2\u6570\u304c\u8272\u3005\u3042\u308a\u307e\u3059\u306d\u3002\r\n\u30bd\u30fc\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002\r\nhttps:\/\/github.com\/wp-cli\/wp-cli\/blob\/master\/php\/utils.php<\/a>\r\n\r\n\u3063\u3066\u308f\u3051\u3067\u3001WP-CLI Advent Calendar 2014 18\u65e5\u76ee\u306f\u7d42\u308f\u308a\u3067\u3059\u3002\r\n\u91d1\u66dc\u65e5\u306e\u65e5\u76f4\u306f\u3001\u5148\u9031\u30b5\u30dc\u3063\u3066\u81ea\u79f0\u897f\u5ddd\u3055\u3093<\/a>\u306b\u4ee3\u6253\u3057\u3066\u3082\u3089\u3063\u3066\u3044\u305f @shinichiN<\/a> \u3055\u3093\u3067\u3059\u3001\u3072\u3083\u3063\u3063\u3063\u3063\u3063\u3063\u307b\u30fc\u30fc\u30fc!","excerpt":"WP-CLI\u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306e18\u65e5\u76ee\u3067\u3059\u3002 \u6628\u65e5\u306f @tecking \u3055\u3093\u306e\u300c\u3072\u3063\u304f\u308a\u8fd4\u308b\u304f\u3089\u3044\u8d85\u7d76\u4fbf\u5229\u306a wp media regenerate\u300d\u3067\u3057\u305f\u3002 \u4eca\u56de\u306f\u524d\u56de\u306e\u7d9a\u304d\u3067\u3059\u3002 \u524d\u56de wp-cli \u5bfe\u5fdc\u3055\u305b\u308b\u65b9 […]","date":"2014-12-18 22:43:54","author":"\u3092\u304b\u3082\u3068","thumbnail":"","categories":["WordPress"],"tags":["WordPress Plugin","wp-cli"]},{"id":3126,"title":"WordPress \u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u990a\u6210\u8aad\u672c","permalink":"https:\/\/dogmap.jp\/2014\/10\/10\/post-3126\/","content":"\u300cWordPress \u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u990a\u6210\u8aad\u672c<\/a>\u300d\u3068\u3044\u3046\u672c\u3092\u3001@naokomc<\/a>\u3055\u3093\u3001@428design<\/a>\u3055\u3093\u3001@masatoshisomeya<\/a>\u3055\u3093\u3068\u304b\u3068\u4e00\u7dd2\u306b\u66f8\u304d\u307e\u3057\u305f\u3002\r\n\u3068\u8a00\u3063\u3066\u3082\u3001\u4f8b\u306e\u3054\u3068\u304f\u51fa\u7248\u793e\u306e\u4eba\u3068\u306f\u4e00\u5ea6\u3082\u4f1a\u3063\u305f\u3053\u3068\u7121\u3044\u3093\u3067\u3059\u3051\u3069\u306d\u3002\r\n\u3082\u3063\u3071\u3089\u3001\u3084\u308a\u3068\u308a\u306f\u30e1\u30fc\u30eb\u304b Facebook \u3060\u3051\u3002\u73fe\u884c\u306e\u5165\u7a3f\u3082\u6280\u8a55\u3055\u3093\u306e GitLab \u30b5\u30fc\u30d0\u3078\u306e push \u3067\u9001\u308b\u3068\u3044\u3046\u30ea\u30e2\u30fc\u30c8\u30ef\u30fc\u30af\u3063\u3077\u308a\u3002\r\n\u307e\u3063\u305f\u304f\u826f\u3044\u6642\u4ee3\u306b\u306a\u3063\u305f\u3082\u3093\u3067\u3059\u3002\r\nWordCamp Tokyo 2014<\/a> \u306e\u4f1a\u5834\u5185\u3067\u5148\u884c\u8ca9\u58f2\u3055\u308c\u308b\u3088\u3046\u3067\u3059\u306e\u3067\u3001\u305d\u3061\u3089\u306b\u884c\u304f\u4e88\u5b9a\u306e\u3042\u308b\u4eba\u306f\u305c\u3072\u30fc\r\n\r\n\u3055\u3066\u3001\u50d5\u304c\u66f8\u3044\u305f\u306e\u306f\u7b2c6\u7ae0\u300cWordPress \u30e6\u30fc\u30b6\u306e\u305f\u3081\u306e Nginx \u5165\u9580\u300d\u3063\u3066\u6240\u3067\u3059\u3002\r\n\u4ed5\u4e8b\u3067\u3088\u304f\u4f7f\u3046 Nginx \u3092\u30cd\u30bf\u306b\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u8a2d\u5b9a\u307e\u3067\u3001\u306f\u3058\u3081\u3066 Nginx \u89e6\u308b\u4eba\u3067\u3082\u306a\u3093\u3068\u304b WordPress \u3092\u52d5\u304b\u305b\u308b\u3088\u3046\u306b\u3059\u308b\u3068\u3053\u308d\u307e\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u308b\u306f\u305a\u3067\u3059\u3002\r\n(\u82e5\u5e72\u3001\u99c6\u3051\u8db3\u6c17\u5473\u3067\u3059\u304c...)\r\n\r\n\u4ee5\u4e0b\u3001\u50d5\u306e\u7ae0\u306e\u76ee\u6b21\r\n
\r\n
- Nginx \u3068\u306f\uff1f - Nginx \u306e\u30b5\u30fc\u30d0\u69cb\u6210\u3084\u7279\u5fb4<\/li>\r\n
- Nginx \u3067 WordPress \u3092\u5229\u7528\u3059\u308b\u306b\u306f - \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a<\/li>\r\n
- Nginx \u306e\u8a2d\u5b9a(\u57fa\u672c\u7de8) - WordPress \u306e\u904b\u7528\u306b\u5f79\u7acb\u3064<\/li>\r\n
- Nginx \u306e\u8a2d\u5b9a(\u5fdc\u7528\u7de8) - \u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3001\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5<\/li>\r\n<\/ul>\r\n\r\n<\/span>\r\n\r\n\u6700\u521d\u306e\u7ae0\u3060\u3051\u5f15\u7528\u3057\u3066\u304a\u304d\u307e\u3059\u306d\u3002\r\n\r\n
Nginx \u3068\u306f\uff1f<\/h2>\r\n\r\n
Nginx OverView<\/h3>\r\nNginx\uff08\u30a8\u30f3\u30b8\u30f3\u30a8\u30c3\u30af\u30b9\uff09\u3068\u306f\u3001\u8efd\u91cf\u3067\u9ad8\u6027\u80fd\u306a\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eWeb\u30b5\u30fc\u30d0\u3067\u3059\u3002\r\nHTML\u3001CSS\u3001JavaScript\u3084\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u9ad8\u901f\u3067\u914d\u4fe1\u3067\u304d\u3001\u30ed\u30fc\u30c9\u30d0\u30e9\u30f3\u30b5\u3084\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u306a\u3069\u306e\u6a5f\u80fd\u3092\u5099\u3048\u3066\u3044\u307e\u3059\u3002\r\n\r\n<\/a>\r\nWordPress\u304c\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u69cb\u6210\u3057\u305f\u4e00\u822c\u7684\u306a\u30b5\u30fc\u30d0\u3092Apache\u3001Nginx\u305d\u308c\u305e\u308c\u3067\u69cb\u6210\u3057\u305f\u5834\u5408\u3001\u56f31\u306e\u3088\u3046\u306b\u306a\u308b\u3067\u3057\u3087\u3046\u3002\r\nNginx\u3067\u306f\u3001Apache\u306e\u3088\u3046\u306bPHP\u3092\u30e2\u30b8\u30e5\u30fc\u30eb\u3068\u3057\u3066\u7d44\u307f\u8fbc\u3080\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002\u3061\u3087\u3046\u3069Apache\u3067PHP\u3092CGI\u7248\u3068\u3057\u3066\u52d5\u4f5c\u3055\u305b\u308b\u72b6\u6cc1\u3068\u4f3c\u3066\u3044\u307e\u3059\u3002\r\nNginx\u306b\u306f\u30e2\u30b8\u30e5\u30fc\u30eb\u7248PHP\u306f\u63d0\u4f9b\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001Apache\u306eCGI\u7248PHP\u3068\u540c\u69d8\u306bWeb\u30b5\u30fc\u30d0\u3068\u306f\u5225\u306e\u30d7\u30ed\u30bb\u30b9\uff08php-fpm\uff09\u3067PHP\u3092\u8d77\u52d5\u3055\u305b\u3066\u304a\u304d\u3001Nginx\u3068\u306e\u901a\u4fe1\u306fTCP\u30bd\u30b1\u30c3\u30c8\u3084\u3001UNIX\u30c9\u30e1\u30a4\u30f3\u30bd\u30b1\u30c3\u30c8\u3092\u7528\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\r\n\r\n
\u30d0\u30fc\u30b8\u30e7\u30f3<\/h3>\r\n\u65e5\u672c\u3067\u3082\u6ce8\u76ee\u3055\u308c\u3066\u304d\u3066\u3044\u308bNginx\u3067\u3059\u304c\u3001\u305d\u308c\u307b\u3069\u82e5\u3044\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\r\n\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f2002\u5e74\u306b Igor Sysoev\uff08\u73feNginx.inc CTO\uff09\u306b\u3088\u3063\u3066\u958b\u59cb\u3055\u308c\u307e\u3057\u305f\u3002\r\n\u73fe\u5728\u306f\u5b89\u5b9a\uff08stable\uff09\u30d0\u30fc\u30b8\u30e7\u30f3\u306e1.6.x\u7cfb\u3068\u30e1\u30a4\u30f3\u30e9\u30a4\u30f3\uff08mainline\uff09\u30d0\u30fc\u30b8\u30e7\u30f3\u306e1.7.x\u7cfb\u306e2\u3064\u306e\r\n\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u3066\u3044\u307e\u3059\u3002\r\nstable\u30d0\u30fc\u30b8\u30e7\u30f3\u306f\u4e3b\u306b\u30d0\u30b0\u30d5\u30a3\u30c3\u30af\u30b9\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30d5\u30a3\u30c3\u30af\u30b9\u306e\u307f\u3092\u884c\u3044\u3001\u7a4d\u6975\u7684\u306b\u65b0\u6a5f\u80fd\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\r\n\u4e00\u65b9\u3001mainline\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u65b0\u6a5f\u80fd\u306e\u8ffd\u52a0\u304c\u7a4d\u6975\u7684\u306b\u884c\u308f\u308c\u307e\u3059\u304c\u3001\u305d\u308c\u306b\u4f34\u3046\u30d0\u30b0\u306e\u767a\u751f\u306a\u3069\u306e\u30ea\u30b9\u30af\u3082\u3042\u308a\u307e\u3059\u3002\r\nmainline\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u691c\u8a3c\u3055\u308c\u554f\u984c\u306a\u3044\u3068\u5224\u65ad\u3055\u308c\u305f\u6a5f\u80fd\u306e\u307f\u304c\u3001\u306e\u3061\u307b\u3069stable\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u6295\u5165\u3055\u308c\u308b\u5f62\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\r\n\u5b9f\u9a13\u7684\u306a\u30b5\u30a4\u30c8\u3067\u306a\u3044\u9650\u308a\u306fstable\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u61f8\u547d\u3067\u3057\u3087\u3046\u3002\r\n\r\n
\u30b7\u30a7\u30a2<\/h3>\r\n\u6700\u8fd1\u306eW3Techs\u306e\u8abf\u67fb\u306b\u3088\u308c\u3070\u3001\u30c8\u30c3\u30d7100\u4e07\u30b5\u30a4\u30c8\u306e\u3046\u3061\u306e\u5b9f\u306b23.8\uff05\u304cNginx\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\r\n\u8aad\u8005\u306b\u306f\u99b4\u67d3\u307f\u6df1\u3044WordPress.com\u3084WordPress.org\u3068\u3044\u3063\u305f\u30b5\u30a4\u30c8\u3067\u3082\u521d\u671f\u306e\u9803\u304b\u3089\u30d0\u30c3\u30af\u30a8\u30f3\u30c9\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3057\u305f\u3002\r\n\u6700\u521d\u306eNginx\u306espdy\u5bfe\u5fdc\u30d1\u30c3\u30c1\u306f\u3001WordPress.com\u3092\u904b\u55b6\u3059\u308bAutomattic\u793e\u306b\u3088\u3063\u3066\u5bc4\u8d08\u3055\u308c\u3066\u3044\u307e\u3059\u3002\r\n\r\n
\u7279\u5fb4<\/h3>\r\nNginx\u306fApache\u306e\u3088\u3046\u306b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u51e6\u7406\u3092\u30b9\u30ec\u30c3\u30c9\u3067\u884c\u308f\u305a\u3001\u975e\u540c\u671f\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u7528\u3044\u308b\u30a4\u30d9\u30f3\u30c8\u30eb\u30fc\u30d7\u30e2\u30c7\u30eb\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002\r\n\u3053\u306e\u30e2\u30c7\u30eb\u306e\u5229\u70b9\u306f\u3001\u591a\u6570\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u6765\u305f\u5834\u5408\u306b\u5b9f\u884c\u30b9\u30bf\u30c3\u30af\u3092\u30b3\u30d4\u30fc\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u30b9\u30ec\u30c3\u30c9\u30e2\u30c7\u30eb\u306e\u30b5\u30fc\u30d0\u3068\u9055\u3063\u3066\u30011\u30d7\u30ed\u30bb\u30b9\u3067\u8907\u6570\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3067\u304d\u308b\u3068\u3053\u308d\u306b\u3042\u308a\u307e\u3059\u3002\r\n\u305d\u306e\u305f\u3081\u3001CPU\u8ca0\u8377\u304c\u5c11\u306a\u304f\u3001\u30e1\u30e2\u30ea\u6d88\u8cbb\u91cf\u3082\u6975\u7aef\u306b\u5c11\u306a\u304f\u3066\u6e08\u3080\u3068\u3044\u3046\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\r\n\u307e\u305f\u3001\u3082\u30461\u3064\u306e\u7279\u5fb4\u3068\u3057\u3066\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u304c\u8aad\u307f\u3084\u3059\u3044\u3068\u3044\u3046\u3053\u3068\u3082\u6319\u3052\u3089\u308c\u307e\u3059\u3002Apache\u306a\u3069\u3001\u307b\u304b\u306eWeb\u30b5\u30fc\u30d0\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3068\u898b\u6bd4\u3079\u3066\u307f\u308c\u3070\u308f\u304b\u308b\u306e\u3067\u3059\u304c\u3001if\u6587\u304c\u4f7f\u3048\u305f\u308a\u5909\u6570\u304c\u4f7f\u3048\u305f\u308a\u3068\u30d7\u30ed\u30b0\u30e9\u30de\u306b\u3068\u3063\u3066\u975e\u5e38\u306b\u308f\u304b\u308a\u3084\u3059\u304f\u306a\u3063\u3066\u3044\u307e\u3059\u3002","excerpt":"\u300cWordPress \u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u990a\u6210\u8aad\u672c\u300d\u3068\u3044\u3046\u672c\u3092\u3001@naokomc\u3055\u3093\u3001@428design\u3055\u3093\u3001@masatoshisomeya\u3055\u3093\u3068\u304b\u3068\u4e00\u7dd2\u306b\u66f8\u304d\u307e\u3057\u305f\u3002 \u3068\u8a00\u3063\u3066\u3082\u3001\u4f8b\u306e\u3054\u3068\u304f\u51fa\u7248\u793e\u306e\u4eba\u3068\u306f\u4e00\u5ea6\u3082\u4f1a\u3063\u305f […]","date":"2014-10-10 18:52:17","author":"\u3092\u304b\u3082\u3068","thumbnail":"","categories":["WordPress"],"tags":["WordPress"]},{"id":3077,"title":"dogmap.jp \u3092 t1.micro \u304b\u3089 t2.micro \u306b\u5909\u66f4\u3057\u3066\u307f\u307e\u3057\u305f","permalink":"https:\/\/dogmap.jp\/2014\/07\/04\/t2-micro\/","content":"AWS \u304b\u3089 7\/2 \u306b\u65b0\u3057\u3044\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30bf\u30a4\u30d7 T2 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u307e\u3057\u305f\u3002\r\n\u3010AWS\u767a\u8868\u3011\u30d0\u30fc\u30b9\u30c8\u53ef\u80fd\u306a\u6027\u80fd\u3092\u6301\u3064\u65b0\u3057\u3044\u4f4e\u30b3\u30b9\u30c8EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9<\/a>\r\n\r\ndogmap.jp \u306f\u3001\u7db2\u5143<\/a>\u306e\u5b9f\u8a3c\u5b9f\u9a13\u3082\u517c\u306d\u3066\u3001\u7db2\u5143\u306e t1.micro \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u7a3c\u50cd\u3055\u305b\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u30a2\u30af\u30bb\u30b9\u304c\u96c6\u4e2d\u3057\u3066\u8ca0\u8377\u304c\u9ad8\u307e\u3063\u3066\u30d0\u30fc\u30b9\u30c8\u3057\u305f\u5f8c\u3001\u4e00\u5b9a\u6642\u9593\u6975\u7aef\u306b\u6027\u80fd\u304c\u60aa\u5316\u3059\u308b\u3068\u3044\u3046\u554f\u984c\u304c\u3042\u308a\u307e\u3057\u305f\u3002\r\n# \u3053\u308c\u306f t1.micro \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u7279\u6027\u3067\u3059\u3002\r\n\u3053\u308c\u7d50\u69cb\u8f9b\u304f\u3066\u3001\u8868\u5074\u3067\u306f Nginx \u306e\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u306a\u3093\u3068\u304b\u51cc\u3044\u3067\u3044\u3066\u3082\u3001WordPress \u306e\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u3044\u3068\u304b\u306e\u72b6\u6cc1\u306b\u9665\u308b\u3053\u3068\u304c\u3057\u3070\u3057\u3070\u3042\u3063\u305f\u3093\u3067\u3059\u3088\u306d\u3002\r\n\r\nT2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3082 t1.micro \u540c\u69d8\u306b\u8ca0\u8377\u304c\u304b\u304b\u3063\u305f\u3068\u304d\u306b\u81ea\u52d5\u7684\u306b\u30d0\u30fc\u30b9\u30c8\u3057\u307e\u3059\u3002\r\n\u305f\u3060\u3057\u3001\u30d0\u30fc\u30b9\u30c8\u53ef\u80fd\u306a\u6642\u9593\u306b\u306f\u5236\u9650\u304c\u3042\u3063\u3066\u3001\u3053\u308c\u3092\u7ba1\u7406\u3059\u308b\u305f\u3081\u306b\u65b0\u305f\u306b CPU Credit \u3068\u3044\u3046\u4ed5\u7d44\u307f\u304c\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002\r\n\u7c21\u5358\u306b\u8a00\u3046\u3068\r\n
\r\n
- \u8ca0\u8377\u304c\u9ad8\u304f\u306a\u304f CPU \u304c\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u6027\u80fd\u306b\u3068\u3069\u307e\u3063\u3066\u3044\u308b\u5834\u5408\u3001CPU\u30af\u30ec\u30b8\u30c3\u30c8\u6b8b\u9ad8\u304c\u8caf\u307e\u3063\u3066\u3044\u304f<\/li>\r\n
- \u8ca0\u8377\u304c\u9ad8\u307e\u3063\u305f\u5834\u5408\u3001CPU\u30af\u30ec\u30b8\u30c3\u30c8\u3092\u6d88\u8cbb\u3057\u3066\u30d0\u30fc\u30b9\u30c8\u3059\u308b<\/li>\r\n
- 1CPU\u30af\u30ec\u30b8\u30c3\u30c8\u30671\u5206\u9593\u30d0\u30fc\u30b9\u30c8\u53ef\u80fd<\/li>\r\n
- CPU\u30af\u30ec\u30b8\u30c3\u30c8\u6b8b\u9ad8\u304c\u7121\u304f\u306a\u3063\u305f\u5834\u5408\u306f CPU \u6027\u80fd\u306f\u30d9\u30fc\u30b9\u30e9\u30a4\u30f3\u6027\u80fd\u306b\u3068\u3069\u307e\u308b<\/li>\r\n
- \u672a\u4f7f\u7528\u306eCPU\u30af\u30ec\u30b8\u30c3\u30c8\u306f\u3001\u6700\u592724\u6642\u9593\u6709\u52b9<\/li>\r\n<\/ul>\r\n\u3068\u3044\u3046\u611f\u3058\u3089\u3057\u3044\u3067\u3059\u3002\r\n\r\n