@Andreas Sinz yes, put all static files (images,css,js) in one place and call them as you mean. The strange thing is that when set file(".") to enable it, the location route goes wrong. i.e. request for /login return 404 error. when disable file("."), the location route act right.