Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
nginx [2020/01/31 14:13] – angelegt geraldnginx [2024/02/29 13:36] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
-NGINX+====== NGINX ======
  
 +Idee, den [[fhem|FHEM]] aus der Ferne steuern zu können wie hier ((https://haus-automatisierung.com/hardware/fhem/2016/12/30/fhem-tutorial-reihe-part-21-zugriff-auf-fhem-ueber-das-internet.html))
 +
 +
 +Quelle ua ((https://community.openhab.org/t/using-nginx-reverse-proxy-authentication-and-https/14542))
  
 Schnellere, kleinere Alternative zu Apache Schnellere, kleinere Alternative zu Apache
 +
 +===== Reverse Proxy =====
 +
  
 Redirect (bzw. proxy), um eine andere Webseite aufzurufen.  Redirect (bzw. proxy), um eine andere Webseite aufzurufen. 
Zeile 19: Zeile 26:
  
 </code> </code>
 +
 +===== SSL =====
 +
 +
 +sudo mkdir -p /etc/ssl/certs
 +
 +sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/ssl/openhab.key -out /etc/ssl/openhab.crt
 +
 +
 +In the NGINX configuration, place the following underneath your server_name variable:
 +<code>
 +
 + ssl_certificate                 /etc/ssl/openhab.crt;
 + ssl_certificate_key             /etc/ssl/openhab.key;
 +</code>
 +
 +===== Passwort =====
 +
 +
 +sudo htpasswd -c /etc/nginx/.htpasswd [mein-username]
 +
 +Now the configuration file (/etc/nginx/sites-enabled/default) needs to be edited to use this password. Open the configuration file and add the following lines underneath the proxy_* settings:
 +
 + auth_basic                            "Username and Password Required";
 + auth_basic_user_file                  /etc/nginx/.htpasswd;
 +
 +
 +
 +
  
  
 
Nach oben
nginx.1580480005.txt.gz · Zuletzt geändert: 2024/02/29 13:35 (Externe Bearbeitung)
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0
DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp   Dogecoin Donations Accepted Here    DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp  DFmW2CEce3htPL1uNQuHUVu4Tk6WXigFQp