[SOLVED]NGINX - Default-Seite spuckt 404 Error anstatt Website

  • Hallo,


    ich hab irgendwie ein kleines Problem, welches ich nicht genau eingrenzen kann.


    /etc/nginx/conf.d/default.conf

    Code
    server {
            listen          188.68.50.XXX:80;
            server_name  188.68.50.XXX;
            access_log  /dev/null;
            error_log   /dev/null;
            root /var/www/default/index.html;
    }


    Rufe ich die IP auf, spuckt NGINX mir aber nur ein "404" aus.


    Müsste ein Aufruf der IP nicht die Webseite "index.html" zu Tage bringen?


    Danke im Voraus, :)

    Einmal editiert, zuletzt von Hades ()

  • Nimm als root nur das Verzeichnis und füge folgende Zeile hinzu:


    Code
    index index.html:


    // ups, hab wohl zu lange gebraucht auf dem Handy ;) btw, der location block ist nicht unbedingt nötig