Update 02-de.md

This commit is contained in:
Christoph 2024-01-30 08:07:37 +01:00 committed by GitHub
parent 92fc709710
commit f3b53c7ce1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,19 +11,7 @@ author_url: https://github.com/cuzimbisonratte
author_image: https://github.com/cuzimbisonratte.png
author_bio:
tags:
tags:
[
linux,
ubuntu,
uptime,
auth,
authentication,
security,
two-factor,
two,
factor,
second,
]
tags: [linux, ubuntu, uptime, auth, authentication, security, two-factor, two, factor, second]
netcup_product_url: https://www.netcup.de/bestellen/produkt.php?produkt=2991
language: de
available_languages: [en, de]
@ -112,9 +100,9 @@ Folge diesen Schritten, um MariaDB zu installieren und zu konfigurieren:
# Schritt 7 - Einrichtung von nginx
2. Wenn nach deinem Passwort gefragt wird, gib es ein und drücke `Enter`.
3. Gib `mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old && nano /etc/nginx/nginx.conf` ein, um die Standardkonfigurationsdatei von nginx zu bearbeiten.
4. Füge den folgenden Code in die Datei ein:
1. Wenn nach deinem Passwort gefragt wird, gib es ein und drücke `Enter`.
2. Gib `mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old && nano /etc/nginx/nginx.conf` ein, um die Standardkonfigurationsdatei von nginx zu bearbeiten.
3. Füge den folgenden Code in die Datei ein:
```nginx
user www-data;
@ -126,38 +114,38 @@ http {
error_log /dev/stderr;
server {
listen 80;
server_name 2fauth.example.com;
root /var/www/2fauth/public;
listen 80;
server_name 2fauth.example.com;
root /var/www/2fauth/public;
index index.php;
index index.php;
charset utf-8;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
}
```
5. Verlasse die Datei, indem du `Strg + X`, dann `Y` und dann `Enter` drückst.
6. Lade nginx neu, indem du `systemctl reload nginx` eingibst.
4. Verlasse die Datei, indem du `Strg + X`, dann `Y` und dann `Enter` drückst.
5. Lade nginx neu, indem du `systemctl reload nginx` eingibst.
# Schritt 8 - Einrichten von HTTPS