0
0
Nginxdevops~5 mins

Stub status module in Nginx - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the Nginx stub status module?
The stub status module provides a simple way to get basic Nginx server statistics like active connections, requests, and connection states.
Click to reveal answer
beginner
Which directive enables the stub status module in an Nginx configuration?
The stub_status on; directive inside a location block enables the stub status module.
Click to reveal answer
intermediate
What kind of information does the stub status page show?
It shows:<br>- Active connections<br>- Accepted connections<br>- Handled connections<br>- Total requests<br>- Reading connections<br>- Writing connections<br>- Waiting connections
Click to reveal answer
intermediate
How do you secure access to the stub status page?
You can restrict access using allow and deny directives to limit which IPs can view the status page.
Click to reveal answer
beginner
What is the typical URL path used to expose the stub status page?
Commonly, the stub status page is exposed at /nginx_status or a similar path defined in the location block.
Click to reveal answer
Which directive enables the stub status module in Nginx?
Astub_status off;
Bstatus on;
Cstub_status on;
Denable_stub_status on;
What does the 'Active connections' value represent on the stub status page?
ANumber of connections closed
BTotal connections since server start
CNumber of failed connections
DNumber of current open connections to Nginx
Which of these is NOT shown by the stub status module?
ATotal requests
BCPU usage
CReading connections
DWriting connections
How can you restrict access to the stub status page?
AUsing allow and deny directives
BUsing proxy_pass
CUsing gzip compression
DUsing server_name directive
What is the default HTTP response content type of the stub status page?
Atext/plain
Bapplication/json
Ctext/html
Dapplication/xml
Explain how to configure the Nginx stub status module to monitor server connections.
Think about the minimal config needed to expose and protect the status page.
You got /3 concepts.
    Describe the key metrics provided by the stub status module and what they indicate about server health.
    Consider what each metric tells about current server load and activity.
    You got /4 concepts.