Welcome! Log In Create A New Profile

Advanced

Re: Problems with rewrite on windows

September 15, 2009 10:10AM
Hi again everyone,

I'm still having great difficulties getting this to work.

(clean urls by having folders with index.html files in them generated by backend)
As of now, nginx doesn´t find an index.html file in a folder, if the foldername contains non ascii chars.

Igor said this was due to a bug in nginx on windows, which I can confirm, since this setup works on linux and os x.

A sollution :

> Well, then you need
>
> location / {
> root c:/webroot/SITE/site/www/;
> try_files $uri $uri/index.html =404;
> }

Unfortunately this does not work, but does give me an 404.

The thing is, there is a file at the path, but nginx is not finding it due to a non-ascii character in the url.
Weird thing, because it works when accessing the file directly.

ie.

/something/ørne/index.html = works
/something/ørne/ = does not work

Also urls with only ascii chars work in both cases

/something/else/index.html = works
/something/else/ = works

This seems to be an error in nginx for windows, so maybe the solution is to beg my client to install linux on their server instead :) ... unfortunately this seems further fetched than getting nginx to function.

Anybody got some insight?
Subject Author Posted

Problems with rewrite on windows

halfd September 10, 2009 08:12AM

Re: Problems with rewrite on windows

halfd September 10, 2009 08:27AM

Re: Problems with rewrite on windows

Igor Sysoev September 10, 2009 08:32AM

Re: Problems with rewrite on windows

halfd September 10, 2009 08:59AM

Re: Problems with rewrite on windows

Igor Sysoev September 10, 2009 09:20AM

Re: Problems with rewrite on windows

halfd September 10, 2009 09:57AM

Re: Problems with rewrite on windows

Igor Sysoev September 10, 2009 10:12AM

Re: Problems with rewrite on windows

halfd September 10, 2009 10:26AM

Re: Problems with rewrite on windows

Igor Sysoev September 10, 2009 11:08AM

Re: Problems with rewrite on windows

halfd September 15, 2009 10:10AM

Re: Problems with rewrite on windows

Igor Sysoev September 16, 2009 09:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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