ISO-Share/default.conf

30 lines
565 B
Text
Raw Normal View History

server {
listen 80;
server_name localhost;
root /opt/www/;
index index.html index.htm;
location ~* (/javadoc)|(/tests) {
autoindex off;
}
location /files/ {
2016-02-12 15:10:23 +00:00
root /opt/www/; # will at the end serve /opt/www/files/
index ___i; # we really need no index here, just listing files
autoindex on;
autoindex_format json;
disable_symlinks off;
}
location / {
root /opt/www/file-browser/;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}