ami
September 22, 2009 10:33PM
Hi

for example,

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 ?

p.s sorry for the bad english.

thanks.
Subject Author Posted

$host doesn't work with case insensitive domains

ami September 22, 2009 10:33PM

RE: $host doesn't work with case insensitive domains

David Murphy September 23, 2009 11:14AM

Re: $host doesn't work with case insensitive domains

Marcos Neves September 23, 2009 11:22AM

Re: $host doesn't work with case insensitive domains

edogawaconan September 23, 2009 11:24AM

Re: $host doesn't work with case insensitive domains

Igor Sysoev September 23, 2009 11:24AM

Re: $host doesn't work with case insensitive domains

ami September 23, 2009 01:02PM

Re: $host doesn't work with case insensitive domains

Igor Sysoev September 23, 2009 02:22PM

Re: $host doesn't work with case insensitive domains

ami September 23, 2009 02:37PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready