Welcome! Log In Create A New Profile

Advanced

Re: case insensitive

July 29, 2010 02:54AM
On Wed, Jul 28, 2010 at 11:26:24PM -0700, Eire Angel wrote:

> I need to serve images to be case insensitive.
> too many of the external links were created using the incorrect case for me to
> just create redirects for them all
> I am trying to use :
> location ~* ^.+.(jpg|jpeg|gif|png)$ {
> root /var/www/my_app/current/public/images;
> access_log off;
> expires 30d;
> }
>
> i have also tried using :
> location ~* ^/images/$ {}
> with the same results. please help

nginx does not support case insensitive file access on a case sensitive file
system. Theoretically this can be implemented, however, it requires
a lot of overhead: instead of single open() syscall, nginx has to call
opendir()/readir()/closedir() which involve about ten syscalls. Although
frequently requested files can be cached in open_file_cache.


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

case insensitive

Eire Angel July 29, 2010 02:38AM

Re: case insensitive

Igor Sysoev July 29, 2010 02:54AM

Re: case insensitive

Boris Dolgov July 29, 2010 03:58AM

Re: case insensitive

Igor Sysoev July 29, 2010 04:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 232
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready