{"id":2922,"date":"2025-03-01T22:10:42","date_gmt":"2025-03-01T13:10:42","guid":{"rendered":"http:\/\/www.whoocus.com\/blog\/?p=2922"},"modified":"2025-03-22T22:17:25","modified_gmt":"2025-03-22T13:17:25","slug":"wordpress%e3%81%aewp-config-php%e3%81%ae%e5%ae%9a%e7%be%a9","status":"publish","type":"post","link":"https:\/\/www.blowfish.co.jp\/?p=2922","title":{"rendered":"WordPress\u306ewp-config.php\u306e\u5b9a\u7fa9"},"content":{"rendered":"\n<p>WordPress\u306eSSL\u306e\u8a2d\u5b9a\u3067\u4e0b\u8a18\u306e\u5b9a\u7fa9\u3092wp-config.php\u306e\u6700\u7d42\u884c\u306b\u8ffd\u8a18\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define('FORCE_SSL_ADMIN', true);\nif (isset($_SERVER&#91;'HTTP_X_FORWARDED_PROTO']) &amp;&amp; $_SERVER&#91;'HTTP_X_FORWARDED_PROTO'] === 'https') {\n    $_SERVER&#91;'HTTPS'] = 'on';\n}\ndefine('FS_METHOD', 'direct');<\/code><\/pre>\n\n\n\n<p>\u3057\u304b\u3057\u3001\u3069\u3046\u3057\u3066\u3082\u300c\u3053\u306e\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u6a29\u9650\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u56f0\u3063\u3066\u3044\u305f\u3002\u305d\u3053\u3067\u3001\u4e0b\u8a18\u306b\u3066\u30c7\u30d0\u30c3\u30b0\u3092true\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_DEBUG', true );<\/code><\/pre>\n\n\n\n<p>\u3059\u308b\u3068\u3001\u300c<strong>Warning<\/strong>: Constant FORCE_SSL_ADMIN already defined in\u00a0<strong>\/var\/www\/wordpress\/wp-config.php<\/strong>\u00a0on line\u00a0<strong>105<\/strong>\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u304d\u305f\u3002\u3088\u304f\u3088\u304f\u8abf\u67fb\u3057\u3066\u307f\u308b\u3068\u3001wp-config.php \u306b\u65b0\u305f\u306a\u5b9a\u7fa9\u3092\u884c\u3046\u6642\u306f\u3001\u4e0b\u8a18\u306e\u5834\u6240\u306b\u8a18\u8ff0\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3089\u3057\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Add any custom values between this line and the \"stop editing\" line. *\/\n\n\/* \u3053\u3053\u306b\u65b0\u3057\u3044\u5b9a\u7fa9\u3092\u3057\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002 *\/\ndefine('FORCE_SSL_ADMIN', true);\nif (isset($_SERVER&#91;'HTTP_X_FORWARDED_PROTO']) &amp;&amp; $_SERVER&#91;'HTTP_X_FORWARDED_PROTO'] === 'https') {\n    $_SERVER&#91;'HTTPS'] = 'on';\n}\ndefine('FS_METHOD', 'direct');\n\n\/* That's all, stop editing! Happy publishing. *\/\n<\/code><\/pre>\n\n\n\n<p>\u89e3\u6c7a\u306b\u304b\u306a\u308a\u306e\u6642\u9593\u3092\u4f7f\u3063\u305f\u3088\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u306eSSL\u306e\u8a2d\u5b9a\u3067\u4e0b\u8a18\u306e\u5b9a\u7fa9\u3092wp-config.php\u306e\u6700\u7d42\u884c\u306b\u8ffd\u8a18\u3057\u305f\u3002 \u3057\u304b\u3057\u3001\u3069\u3046\u3057\u3066\u3082\u300c\u3053\u306e\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u6a29\u9650\u304c\u3042\u308a\u307e\u305b\u3093\u3002\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u56f0\u3063\u3066\u3044\u305f\u3002\u305d\u3053\u3067\u3001\u4e0b\u8a18\u306b\u3066\u30c7\u30d0\u30c3\u30b0\u3092tru [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[73,74,13,18,4],"tags":[],"class_list":["post-2922","post","type-post","status-publish","format-standard","hentry","category-aws","category-linux","category-php","category-wordpress","category-tech"],"_links":{"self":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2922"}],"version-history":[{"count":4,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2922\/revisions"}],"predecessor-version":[{"id":2955,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2922\/revisions\/2955"}],"wp:attachment":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}