Nginx: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Thomas (Diskussion | Beiträge)
Tippfehler-Link korrigiert, ModSecurity als historisch markiert, neue Module ergaenzt
 
(36 dazwischenliegende Versionen von 5 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
=Installation=
*[[Nginx Grundlagen]]
*sudo apt-get install nginx
*[[Nginx Basis]]
=Start=
*[[Nginx Individuelle Seiten]]
*systemctl start nginx
*[[Nginx HTTP Standard Seite]]
=Stop=
*[[Nginx HTTPS Standard Seite]]
*systemctl stop nginx
*[[Nginx IPs]]
=Restart=
*[[Nginx Zertifikate]]
*systemctl restart nginx
*[[Nginx HTTPS Virtueller Host]]
=Reload=
*[[Nginx HTTP auf HTTPS weiterleiten]]
*systemctl reload nginx
*[[Nginx HTTPS inklusive Client Zertifikat]]
 
*[[Nginx Client Zertifikat mit 2FA]]
=Status=
*[[Nginx Webproxy für HTTPS]]
*systemctl status nginx
*[[Nginx mit Modsecurity]] (historisch, siehe [[Reverse Proxy]] für den aktuellen WAF-Ansatz mit HAProxy/Coraza)
=Port check=
*[[Nginx mit Modsecurity und Blocklist Policy]] (historisch)
*netstat -lntp | grep nginx
*[[Nginx php]]
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1438/nginx -g daemo
*[[Nginx Beispielwebsite]]
tcp6      0      0 :::80                  :::*                   LISTEN      1438/nginx -g daemo
*[[Nginx Beispielproxy]]
=Content=
*[[Nginx Grundkonfiguration]] (Animation)
*/var/www/html
*[[Nginx Reverse Proxy und Load Balancing]]
=Config=
*[[Nginx Lets Encrypt und Certbot]]
*/etc/nginx
*[[Nginx Absichern und Betreiben]]
The nginx configuration directory. All of the Nginx configuration files reside here.
*/etc/nginx/nginx.conf
The main Nginx configuration file. This can be modified to make changes to the Nginx global configuraiton.
*/etc/nginx/sites-available
The directory where per-site "server blocks" can be stored. Nginx will not use the configuration files found in this directory unless they are linked to the sites-enabled directory (see below). Typically, all server block configuration is done in this directory, and then enabled by linking to the other directory.
*/etc/nginx/sites-enabled/
The directory where enabled per-site "server blocks" are stored. Typically, these are created by linking to configuration files found in the sites-available directory.
*/etc/nginx/snippets
This directory contains configuration fragments that can be included elsewhere in the Nginx configuration. Potentially repeatable configuration segments are good candidates for refactoring into snippets.
=Server Logs
*/var/log/nginx/access.log
Every request to your web server is recorded in this log file unless Nginx is configured to do otherwise.
*/var/log/nginx/error.log
Any Nginx errors will be recorded in this log.
 
=Links=
*https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04

Aktuelle Version vom 31. Oktober 2026, 15:16 Uhr