1
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 3 years have passed since last update.

nginxのstatusを表示するモジュール /nginx_status

Last updated at Posted at 2020-07-23

1. Add http_stub_status_module

nginxをbuildするときにこれを入れる


  && ./configure \
  ...
  --with-http_stub_status_module \         <--------------
  ...

Dockerfileの例
https://qiita.com/uturned0/items/3a0a7cb971edac40b11e

2. Enable conf

server { 
   listen       80;

   location = /nginx_status {
       stub_status;       # <--------これだけ
   }

   location = / {
       # ...
   }

}

3. access

http://localhost/nginx_status 的な。

殺風景すぎる問題はあるが、まあ、動いてるのねくらいには使える。

image.png

nginx posts

nginxのstatusを表示するモジュール /nginx_status
https://qiita.com/uturned0/items/b4eb6839d75050933c7f

nginxにモジュールを追加できるDockerfile
https://qiita.com/uturned0/items/3a0a7cb971edac40b11e

nginxリバプロで header を cookieに書き込む方法
https://qiita.com/uturned0/items/112b8faba403bd534d5c

nginxリバプロで、requestに入っているheaderをlogに出す方法
https://qiita.com/uturned0/items/31162eeb03af05c7dc4b

nginxだけでコンテンツを返す方法 - Load balancerのhealth checkに
https://qiita.com/uturned0/items/a8bcca111b75c5055ed9

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