0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【備忘録】Apache 2.4系でリクエストヘッダーを全て見る

Last updated at Posted at 2025-10-08

やり方

httpd.confのログレベルにhttp:trace5以上を書く。
trace4~5の辺りにリクエストヘッダー情報が出てきます。
最大値が8のため、全てを出力させたい場合は、trace8を書いてください。
注意点として、エラーログにこれらの情報は出力されます。

LogLevel warn http:trace8
ErrorLog log/error.log

まとめ

.htaccessファイルでよく使われるRewriteCond、RewriteRuleの
挙動を全て出力させるrewrite:trace8の情報ばかりが
検索結果としてヒットするので、備忘録として書きました。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?