ironsmile / nedomi

Highly performant HTTP reverse proxy with efficient caching of big files
GNU General Public License v3.0
81 stars 9 forks source link

Dir handler: root directory is not rooted #208

Closed ironsmile closed 8 years ago

ironsmile commented 8 years ago

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.

mstoykov commented 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.

mstoykov commented 8 years ago

218 will fix is a solution to the problem I described in the previous comment

ironsmile commented 8 years ago

Yes, the propsed solution can solve the problem. I find it unituitive but it will do.