When I try to access a file which is named "file" I got the Error 404 - file not found.
I checked on the Server if it exists. Yes it does exist.
I checked if the file is owned by the webuser. Yes it is.
I checked the correct permission. 775 should work, so yes.
The problem is, that the file isn't treated as file. Nginx thinks it is a folder and searches for an index.html file.
2017/09/14 11:26:50 [error] 15085#15085: *3 "/srv/www/myfolder/file/index.html" is not found (20: Not a directory), client: 192.168.1.35, server: , request: "GET /myfolder/file/ HTTP/1.1", host: "example.com", referrer: "http://example.com/myfolder/"
How can I change that ? I also tried with several browsers (FF, Safari) also cURL and wget .. still Error 404
UPDATE 1
server {
listen 80 default_server;
rewrite ^([^.]*[^/])$ $1/ permanent;
gzip off;
location /mirror {
alias /srv/mirror;
autoindex on;
}
It is an Debian Mirror - if I comment the rewrite out, I get this Error:
BZ2_bzread: /var/lib/apt/lists/partial/mirror.com_debian_dists_stretch_main_i18n_Translation-en.bz2 Read error (-5: DATA_ERROR_MAGIC)
If i comment that in Again, it can't find the Release file cause of the redirect ...