Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just switched over to nginx as a static file server and it works for the vast majority of files but it's throwing a 404 on certain files with special characters.

This is Kevin Worthington's 64 bit build of nginx running on Windows Server 2008 R2.

My nginx.conf entry looks like this...

server {

    listen       80;

location /static/ { root /cygdrive/g/Files; expires 30d; }

    location / {

The entry in the error log is as follows...

recvmsg() returned invalid ancillary data level 19 or type 8 2011/08/19 19:04:22 [error] 3756#0: *1 open() "/cygdrive/g/Files/static/Pilón.jpg" failed (2: No such file or directory), client:, server:, request: "GET /static/Pil%F3n.jpg HTTP/1.1", host: ""

If I grab the path referenced in the error, swap the slashes for backslashes and toss a colon in there for good measure then windows will open the file from the run menu. Other files in the same folder but not containing special characters work just fine.

share|improve this question
up vote 0 down vote accepted

It seems there is a bug with unicode characters in windows versions of nginx. There is some workaround proposed in nginx maillist, try it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.