Hallo Forum,
ich brauche eure Hilfe ich hab mir nginx 1.77 auf Debian jessie kompiliert und eine automatische Umleitung von http auf https eingerichtet
In meiner nginx.conf sind mehrere locations definiert unter andrem die location testing, welche mehrere Verzeichnisse enthält jedoch keine index.html oder index.htm (php brauche ich nicht)
einem Howto http://www.nginxtips.com/nginx-location-directive/
folgend habe ich die location mit autoindex on;
folgendermaßen eingetragen:
location /testing {
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
}
Die Seite kannn nicht geladen werden
Die rechte des Verzeichnisses testing schauen so aus:
drwxr-xr-x 5 www-data www-data 4096 Nov 19 10:45 .
drwxr-xr-x 5 root root 4096 Nov 16 09:04 ..
-rwxr-xr-x 1 www-data www-data 867 Nov 17 13:56 index.html
drwxr-xr-x 2 www-data www-data 4096 Nov 19 10:10 static
drwxr-xr-x 2 www-data www-data 4096 Nov 19 09:56 test
drwxr-xr-x 7 www-data www-data 4096 Nov 19 10:53 testing
Bei der loation static, die über ine index.html verfügt erhalte ich eien 404 not found Error.
Auch die alias directive habe ich schon probiert; wie muss ich die locations richtig eintragen
root ist für ale /usr/share/nginx/html
Meine kpl. nginx.conf ist hier: http://pastebin.com/6G44Un2e
Danke für eure Hilfe schonmal.
Gruss
hcx