Welcome! Log In Create A New Profile

Advanced

Problem with migrating from IIS to NGINX

Posted by farzad 
Problem with migrating from IIS to NGINX
January 07, 2015 12:13AM
Hi all !
I'm new in Nginx.
I'v migrated from IIS to Nginx but some of my links are broken because case sensivity.
How can I say to Nginx which these links are equal :
www.mydowmain.com/kmplayer.exe
www.mydowmain.com/Kmplayer.exe

my server block config:

server {
listen 80;
server_name mydomain.com;

root /home/;

location / {
autoindex off;
}



Edited 1 time(s). Last edit at 01/07/2015 12:13AM by farzad.
Re: Problem with migrating from IIS to NGINX
January 07, 2015 05:24AM
http://stackoverflow.com/questions/18415508/how-to-make-url-case-insensitive-with-nginx
http://www.nginxtips.com/nginx-location-directive/

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Problem with migrating from IIS to NGINX
January 07, 2015 06:39AM
itpp2012 Wrote:
-------------------------------------------------------
> http://stackoverflow.com/questions/18415508/how-to-make-url-case-insen
> sitive-with-nginx
> http://www.nginxtips.com/nginx-location-directive/


So what's haapen if I'd have this senario:

A root folder named /home and many files and folders into it for example:
/home/img/1.gif
/home/img/2.gif
/home/video/1.mp4
/home/video/2.mp4
/home/prog/1.exe
/home/prog/2.exe

And server block configuration:

server {
listen 80;
server_name mydomain.com;

root /home/;

location / {
autoindex off;
}


How can I configure location block to work case insensitive for this senario?
Re: Problem with migrating from IIS to NGINX
January 07, 2015 08:01AM
http://forum.nginx.org/read.php?11,83120,115834

Maybe with this addon: https://github.com/replay/ngx_http_lower_upper_case

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 127
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