Perfekt, du hast mein Wochenende gerettet. Und das meiner Frau.

Eine hoffentlich letzte Frage:
Wenn ich das System neu aufsetze, muss ich dann den certbot wieder ausführen, oder den well-known Ordner kopieren?

upstream php {
server localhost:9090;
}
server {
listen 80 default_server;
server_name smartvisu36.spdns.eu;
satisfy any;
allow 192.168.1.0/24;
deny all;
auth_basic "SmartVisu Anmeldung";
auth_basic_user_file /etc/nginx/htpasswd.smartvisu;
root /var/www/html;
index index.php index.html index.htm;
location / {
autoindex on;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9090;
fastcgi_read_timeout 300;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location /.well-known {
allow all;
}
}
# Alexa
server {
listen 443 ssl default_server;
server_name smartvisu36.spdns.eu;
access_log /var/log/nginx/alexa.log combined;
auth_basic "Alexa";
auth_basic_user_file /etc/nginx/htpasswd.alexa;
include /etc/nginx/include.d/common;
location / {
proxy_pass http://192.168.1.13:9000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
upstream php {
server localhost:9090;
}
server {
listen 80 default_server;
server_name xyz.spdns.eu;
satisfy any;
allow 192.168.1.0/24;
deny all;
auth_basic "SmartVisu Anmeldung";
auth_basic_user_file /etc/nginx/htpasswd.smartvisu;
root /var/www/html;
index index.php index.html index.htm;
location / {
autoindex on;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9090;
fastcgi_read_timeout 300;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location /.well-known {
allow all;
}
}
# SSL-Redirect & LetsEncrypt Endpoint
server {
listen 80 default_server;
# redirect every requested $host (any, even invalid ones) to its SSL URL
location / {
return 301 https://$host$request_uri;
}
# LetsEncrypt Endpoint
location /.well-known {
alias /var/www/html/.well-known;
}
}
# Sitemap
# server {
# listen 443 ssl default_server;
#
# access_log /var/log/nginx/sitemap.log combined;
# auth_basic "xyz.spdns.eu";
# auth_basic_user_file /etc/nginx/htpasswd;
# include /etc/nginx/include.d/common;
#
# add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
#
# location / {
# root /var/www/html/sitemap;
# index index.html;
# }
# }
# Alexa
server {
listen 443 ssl;
server_name xyz.spdns.eu;
access_log /var/log/nginx/alexa.log combined;
auth_basic "Alexa";
auth_basic_user_file /etc/nginx/htpasswd.alexa;
include /etc/nginx/include.d/common;
location / {
proxy_pass http://192.168.1.13:9000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
server { listen 80 default_server; server_name xyz.spdns.eu; satisfy any; allow 192.168.1.0/24; deny all; auth_basic "SmartVisu Anmeldung"; auth_basic_user_file /etc/nginx/htpasswd.smartvisu; root /var/www/html; index index.php index.html index.htm;
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.


Einen Kommentar schreiben: