how to configure .htc files to work on nginx how to configure .htc files to work on nginx nginx nginx

how to configure .htc files to work on nginx


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.