ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mime-types



Понадобилось для 1 вхоста добавить дополнительный mime-types.
Добавил вконфиг вхоста

types {
text/cache-manifest manifest;
}
Вроде бы всё ок

curl -I http://test1.loc/cache.manifest
HTTP/1.1 200 OK
Server: nginx/1.0.0
Date: Mon, 16 May 2011 20:30:05 GMT
Content-Type: text/cache-manifest
Content-Length: 207
Last-Modified: Mon, 16 May 2011 20:22:15 GMT
Connection: close
Accept-Ranges: bytes

Но

curl -I http://test1.loc/
HTTP/1.1 200 OK
Server: nginx/1.0.0
Date: Mon, 16 May 2011 20:31:19 GMT

Content-Length: 9481
Last-Modified: Mon, 16 May 2011 20:28:25 GMT
Connection: close
Accept-Ranges: bytes

почему у индекса Content-Type: application/octet-stream?
Пока временно добавил тип в глобальный  mime.types
===
nginx  -V
nginx: nginx version: nginx/1.0.0
nginx: TLS SNI support enabled
nginx: configure arguments: --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-log-path=/var/log/nginx/access.log --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-debug --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=/var/www/home/stalker/src/nginx/nginx-1.0.0/debian/modules/nginx-echo --add-module=/var/www/home/stalker/src/nginx/nginx-1.0.0/debian/modules/nginx-upstream-fair



_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.