Serving mp3 files from Nginx

nhytro-python at web.de nhytro-python at web.de
Sat May 19 10:44:25 MSD 2007


I have noticed something very strange with Nginx. I can server normal mp3 files from Apache, and the can be played or downloaded normally, the same files do not work on Nginx.

here is a test link:

http://www.nhytro.de/test.mp3

This is what my conf looks like:

user www-data;
worker_processes 1;

error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;

events {
worker_connections 1024;
}

http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

access_log /var/log/nginx/access.log;

sendfile on;
#tcp_nopush on;

#keepalive_timeout 0;
keepalive_timeout 65;
tcp_nodelay on;

gzip on;

server {
listen 80;
server_name localhost;

access_log /var/log/nginx/localhost.access.log;

location / {
root /var/www/nginx-default;
index index.html index.htm;
}
}
}

## ======= ERROR LOG

007/05/18 00:26:10 [crit] 3784#0: *6 sendfile() failed (38: Function not implemented) while sending response to client, client: 81.62.17.209, server: localhost, URL: "/test.mp3", host: "www.nhytro.de"

Does anyone have an idea what I have done wrong?

Thanks


_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192






More information about the nginx mailing list