1

我真的需要将此 .htaccess 代码转换为 nginx 配置。我从来没有使用过 nginx,所以我对这种东西很陌生。我的 .htaccess 没有那么大。如果有人可以将其转换为 nginx 配置文件,那就太好了!

<Files file.swf>
   ForceType application/x-httpd-php
</Files>

(我曾尝试使用之前发布的转换器,但它们似乎都不起作用。)在此先感谢 Zoorah。

4

1 回答 1

0

假设“file.swf”中的“file”代表一个文件名,那么...

location ~ file\.swf {
    default_type application/x-httpd-php;
}
于 2012-07-08T19:21:29.473 回答