Welcome! Log In Create A New Profile

Advanced

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

Marcos Neves
September 23, 2009 11:22AM
Thats a good idea, but I dont know how.

Marcos Neves
+55 44 9918-8488



On Wed, Sep 23, 2009 at 12:03 PM, David Murphy <david@icewatermedia.com> wrote:
> Why don’t you use   Embedded Perl ( http://wiki.nginx.org/NginxEmbeddedPerlModule ) to    do a string to lower type function , so the path is sanitized?
>
> David Murphy
>
>
>
> -----Original Message-----
> From: owner-nginx@sysoev.ru [mailto:owner-nginx@sysoev.ru] On Behalf Of ami
> Sent: Tuesday, September 22, 2009 11:50 PM
> To: nginx@sysoev.ru
> Subject: $host doesn't work with case insensitive domains
>
> 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.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,8548,8548#msg-8548
>
>
>
>
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: 311
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