Welcome! Log In Create A New Profile

Advanced

mime-types

Anton Gorlov
May 17, 2011 02:46AM
Понадобилось для 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@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

mime-types

Anton Gorlov May 17, 2011 02:46AM

Re: mime-types

Maxim Dounin May 17, 2011 04:24AM

Re: mime-types

Anton Gorlov May 17, 2011 05:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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