Closed ironsmile closed 8 years ago
Seems to work.
What doesn't (and is probably what the issue is) is that if you have location let's say '/somewhere/else' which has dir
handler with root /var/www
accessing /somewhere/else/index.html
will try to get /var/www/somewhere/else/index.html
.
Yes, the propsed solution can solve the problem. I find it unituitive but it will do.
Lets say, the
dir
handler is used and its root is configured to be/var/www/app
. One would expect the file/var/www/app/index.html
to be accessible at the web path '/index.html'. This is not the case. In such a configuration, the file will not be found at this path. It is not clear what exactly does the root directory mean.