ApacheでWordpressを運用しているサイトでserver-info,server-statusで確認する必要ができてhttpd.confを編集して有効にしたけど”Not Found“となります
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# # Allow server status reports generated by mod_status, # with the URL of http://servername/server-status # Change the ".example.com" to match your domain to enable. # <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from [許可IP] </Location> # # Allow remote server configuration reports, with the URL of # http://servername/server-info (requires that mod_info.c be loaded). # Change the ".example.com" to match your domain to enable. # <Location /server-info> SetHandler server-info Order deny,allow Deny from all Allow from [許可IP] </Location> |
WordPressは.htaccessでRewriteEngine Onで書換えがあるのでそれが原因かなと探したらありました
apache server-status not found. check if mod_status is enabled
http://serverfault.com/questions/328851/apache-server-status-not-found-check-if-mod-status-is-enabled
.htaccessに下記の行を追加することでアクセス可能になりました
1 |
RewriteRule ^(server-info|server-status) - [L] |