domain.com will work fine.
but if I will request Domain.com/DOMAIN.COM/domAin.com
it will result in a Not Found 404 (because there is no
“/var/www/html/domAin.com” etc.)
I used the $host variable for virtual hosts
root /var/www/html/$host;
it happens because the directory is in lowercase name in linux
(/var/www/html/domain.com)
so is there anyway to make nginx read all incoming domains as lowercase
ones ?
On Wed, Sep 23, 2009 at 12:50:07AM -0400, ami wrote:
it happens because the directory is in lowercase name in linux (/var/www/html/domain.com)
so is there anyway to make nginx read all incoming domains as lowercase ones ?
The attached patch fixes the bug. It’s suitable for 0.8 and 0.7.
It seems you did copy/paste from forum message. For some reason the
patch
was not placed as separate file with forum message. Try this: http://sysoev.ru/nginx/patch.host.lowcase