{"id":4563,"date":"2024-02-19T19:53:06","date_gmt":"2024-02-19T10:53:06","guid":{"rendered":"https:\/\/taitan916.info\/blog\/?p=4563"},"modified":"2024-02-10T20:06:12","modified_gmt":"2024-02-10T11:06:12","slug":"post-4563","status":"publish","type":"post","link":"https:\/\/taitan916.info\/blog\/archives\/4563","title":{"rendered":"HTTP\u5fdc\u7b54\u30d8\u30c3\u30c0\u30fc\u306bApache\u3084PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7b49\u4e0d\u8981\u306a\u30c7\u30fc\u30bf\u3092\u51fa\u529b\u3055\u305b\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>\u5f53\u30b5\u30a4\u30c8\u3092Firefox\u306e\u958b\u767a\u8005\u30c4\u30fc\u30eb\u304b\u3089\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068HTTP\u5fdc\u7b54\u30d8\u30c3\u30c0\u30fc\u306b\u300cServer: Apache\/2.4.6 (CentOS) OpenSSL\/1.0.2k-fips PHP\/7.4.29\u300d\u3068Apache\u3084PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u3066\u304a\u308a\u3061\u3087\u3063\u3068\u6c17\u306b\u306a\u3063\u305f\u3002\u4ee5\u4e0b\u306b\u8868\u793a\u3055\u305b\u306a\u3044\u65b9\u6cd5\u3092\u30e1\u30e2\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u5bfe\u5fdc\u524d\u306e\u5fdc\u7b54\u30d8\u30c3\u30c0\u30fc<\/h2>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">HTTP\/1.1 200 OK\r\nDate: Sat, 10 Feb 2024 10:30:15 GMT\r\nServer: Apache\/2.4.6 (CentOS) OpenSSL\/1.0.2k-fips PHP\/7.4.29\r\nX-Powered-By: PHP\/7.4.29\r\nCache-Control: max-age=3600\r\nExpires: Sat, 10 Feb 2024 11:30:15 GMT\r\nContent-Length: 5354\r\nKeep-Alive: timeout=5, max=100\r\nConnection: Keep-Alive\r\nContent-Type: text\/html; charset=UTF-8<\/pre>\n<p>&nbsp;<\/p>\n<h2>\u5bfe\u5fdc\u65b9\u6cd5<\/h2>\n<h3>Apache\u8a2d\u5b9a<\/h3>\n<p>\u30b5\u30fc\u30d0\u306bSSH\u63a5\u7d9a\u3057\u4ee5\u4e0b\u306e\u901a\u308a\u9032\u3081\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#apache\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\r\nvi \/etc\/httpd\/conf\/httpd.conf\r\n\r\n#\u4ee5\u4e0b\u3092\u8ffd\u8a18\r\nServerSignature Off\r\nServerTokens ProductOnly\r\n\r\n#apache\u306e\u518d\u8d77\u52d5\r\nsystemctl restart httpd<\/pre>\n<p>\u300c<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/ja\/mod\/core.html#serversignature\" target=\"_blank\" rel=\"noopener\">ServerSignature<\/a>\u300d\u306f\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u3001\u300c<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/ja\/mod\/core.html#servertokens\" target=\"_blank\" rel=\"noopener\">ServerTokens<\/a>\u300d\u306f\u5fdc\u7b54\u30d8\u30c3\u30c0\u30fc\u306e\u8a2d\u5b9a\u3068\u306a\u308b\u3002<\/p>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306e\u5fdc\u7b54\u30d8\u30c3\u30c0\u30fc\u306f\u4ee5\u4e0b\u5185\u5bb9\u304c\u51fa\u529b\u3055\u308c\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">HTTP\/1.1 200 OK\r\nDate: Sat, 10 Feb 2024 10:37:49 GMT\r\nServer: Apache\r\nX-Powered-By: PHP\/7.4.29\r\nCache-Control: max-age=3600\r\nExpires: Sat, 10 Feb 2024 11:37:49 GMT\r\nContent-Length: 5354\r\nKeep-Alive: timeout=5, max=100\r\nConnection: Keep-Alive\r\nContent-Type: text\/html; charset=UTF-8<\/pre>\n<p>\u300cServer: Apache\u300d\u306e\u3068\u3053\u308d\u304c\u300c<a href=\"https:\/\/httpd.apache.org\/docs\/2.4\/ja\/mod\/core.html#servertokens\" target=\"_blank\" rel=\"noopener\">ServerTokens<\/a>\u300d\u3067\u8a2d\u5b9a\u3057\u305f\u901a\u308a\u3001\u6700\u4f4e\u9650\u306e\u51fa\u529b\u306b\u306a\u3063\u3066\u3044\u308b\u70b9\u304c\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n<h3>PHP\u8a2d\u5b9a<\/h3>\n<p>\u30b5\u30fc\u30d0\u306bSSH\u63a5\u7d9a\u3057\u4ee5\u4e0b\u306e\u901a\u308a\u9032\u3081\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#PHP\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\r\nvi \/etc\/php.ini\r\n\r\n#\u5909\u66f4\u524d\r\nexpose_php = On\r\n\r\n#\u5909\u66f4\u5f8c\r\nexpose_php = Off\r\n\r\n#apache\u306e\u518d\u8d77\u52d5\r\nsystemctl restart httpd<\/pre>\n<p>\u300c<a href=\"https:\/\/www.php.net\/manual\/ja\/ini.core.php#ini.expose-php\" target=\"_blank\" rel=\"noopener\">expose_php<\/a>\u300d\u304c\u5fdc\u7b54\u30d8\u30c3\u30c0\u30fc\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u3068\u306a\u308b\u3002<\/p>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306e\u5fdc\u7b54\u30d8\u30c3\u30c0\u30fc\u306f\u4ee5\u4e0b\u5185\u5bb9\u304c\u51fa\u529b\u3055\u308c\u308b\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">HTTP\/1.1 200 OK\r\nDate: Sat, 10 Feb 2024 10:43:19 GMT\r\nServer: Apache\r\nCache-Control: max-age=3600\r\nExpires: Sat, 10 Feb 2024 11:43:19 GMT\r\nContent-Length: 5354\r\nKeep-Alive: timeout=5, max=100\r\nConnection: Keep-Alive\r\nContent-Type: text\/html; charset=UTF-8<\/pre>\n<p>PHP\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u8868\u793a\u3055\u308c\u306a\u304f\u306a\u3063\u305f\u70b9\u304c\u78ba\u8a8d\u3067\u304d\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u6240\u611f<\/h2>\n<p>\u8272\u3005\u30b5\u30a4\u30c8\u3092Wappalyzer\u3067\u898b\u3066\u3044\u308b\u3068PHP\u3084Apache\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u3068\u3055\u308c\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u4e0d\u601d\u8b70\u306b\u601d\u3063\u3066\u3044\u305f\u3051\u3069\u3001\u3053\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u3092\u884c\u3046\u3053\u3068\u3067\u975e\u8868\u793a\u306b\u3067\u304d\u308b\u3093\u3060\u3068\u52c9\u5f37\u306b\u306a\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u30b5\u30a4\u30c8\u3092Firefox\u306e\u958b\u767a\u8005\u30c4\u30fc\u30eb\u304b\u3089\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3068HTTP\u5fdc\u7b54\u30d8\u30c3\u30c0\u30fc\u306b\u300c ... <\/p>\n","protected":false},"author":1,"featured_media":1105,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[7],"tags":[],"class_list":["post-4563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/4563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/comments?post=4563"}],"version-history":[{"count":3,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/4563\/revisions"}],"predecessor-version":[{"id":4569,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/posts\/4563\/revisions\/4569"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media\/1105"}],"wp:attachment":[{"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/media?parent=4563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/categories?post=4563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taitan916.info\/blog\/wp-json\/wp\/v2\/tags?post=4563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}