using alias in nginx config for /files to save headaches
This commit is contained in:
parent
79baf80b30
commit
c2b2e7db03
1 changed files with 1 additions and 5 deletions
|
@ -5,12 +5,8 @@ server {
|
|||
root /opt/www/;
|
||||
index index.html index.htm;
|
||||
|
||||
location ~* (/javadoc)|(/tests) {
|
||||
autoindex off;
|
||||
}
|
||||
|
||||
location /files/ {
|
||||
root /opt/www/; # will at the end serve /opt/www/files/
|
||||
alias /opt/www/files/;
|
||||
index ___i; # we really need no index here, just listing files
|
||||
|
||||
autoindex on;
|
||||
|
|
Loading…
Reference in a new issue