how to configure .htc files to work on nginx

牧云@^-^@ 提交于 2019-12-05 08:52:44

I've found the answer, this solution. It's the 2nd post down on the thread.

Comment by mjijackson@gmail.com, Oct 15, 2009

The directives are almost identical if you're using nginx. Open /etc/nginx/mime.types and add the following three lines inside your types {}declaration (in recent versions of nginx they're already there):

text/x-component htc;
application/x-shockwave-flash swf;
image/svg+xml svg;

Try something like this..

location = /border-radius.htc {
  default_type 'text/x-component';
  try_files $uri /border-radius.htc;
}

Note the actual file location is relative to your root path.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!