Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:nginx

nginx

nginx ist ein Webserver.

Konfiguration

Directory Listing

[...]
    location /somedir {
           autoindex on;
    }

Block Bots

# Bad bots filter code
# provided by http://badbots.vps.tips

if ($http_user_agent ~* "SentiBot" ) {
    return 403;
}

Monitoring

How do I calculate connections per seconds?


  1. 27 = Number of all open connections
  2. 221901 = Accepted connections
  3. 221901 = Handled connections
  4. 442577 = Handles requests
  • Requests per connection = handles requests / handled connections
  • Requests per connection = 442577/221901 (pass this to bc -l using echo '442577/221901' | bc -l command)
  • Requests per connection = 1.99

Howtos

linux/nginx.txt · Zuletzt geändert: von 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki