Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:nginx

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
linux:nginx [2016/03/22 22:18] movelinux:nginx [2019/02/27 14:26] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 10: Zeile 10:
     }     }
 </Code> </Code>
 +
 +==== Block Bots ====
 +<Code>
 +# Bad bots filter code
 +# provided by http://badbots.vps.tips
 +
 +if ($http_user_agent ~* "SentiBot" ) {
 +    return 403;
 +}
 +</Code>
 +
 +===== Monitoring =====
 +==== How do I calculate connections per seconds? ====
 +{{:linux:nginx_status.png |}}
 +
 +----
 +
 +<WRAP center round box 100%>
 +  - 27 = Number of all open connections
 +  - 221901 = Accepted connections
 +  - 221901 = Handled connections
 +  - 442577 = Handles requests
 +</WRAP>
 +
 +<WRAP center round box 100%>
 +  * 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
 +</WRAP>
  
 ===== Weblinks ===== ===== Weblinks =====
  
   * http://nginx.org   * http://nginx.org
 +  * http://nginx.org/en/docs/
  
 ==== Howtos ==== ==== Howtos ====
 +  * //[[https://ho2e.de/wallabag/?view=tag&id=181|Nginx bei Wallabag]]//
   * [[https://ho2e.de/wallabag/index.php?view=view&id=185|HSTS in nginx konfigurieren]] ([[HSTS]])   * [[https://ho2e.de/wallabag/index.php?view=view&id=185|HSTS in nginx konfigurieren]] ([[HSTS]])
 +  * [[https://ho2e.de/wallabag/index.php?view=view&id=216|How to monitor NGINX]] (1)
 +    * [[https://ho2e.de/wallabag/index.php?view=view&id=217|How to collect NGINX metrics]] (2)
 +    * [[https://ho2e.de/wallabag/index.php?view=view&id=218|How to monitor NGINX performance with Datadog]] (3)
 +  * [[https://ho2e.de/wallabag/index.php?view=view&id=214|Optimizing NGINX and PHP-fpm for high traffic sites]]
 +
 +
linux/nginx.1458685108.txt.gz · Zuletzt geändert: (Externe Bearbeitung)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki