3
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?

More than 5 years have passed since last update.

add_headerを使ってnginxをデバッグする

Posted at

「このlocationディレクティブってちゃんと動いてんのかな・・・ :thinking:
みたいな確認はadd_headerを使うと便利です。

nginx.conf
location = / {
  add_header X-debug-message "this location is /";
  ...
}

Developer consoleで確認してみると、、、

スクリーンショット_2018-09-28_13_13_11.png

Response Headerにちゃんと反映されてますね :tada:

以上です。

参考

3
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
3
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?