0
<LocationMatch "\.(?i:pps)$">
             ForceType application/vnd.ms-powerpoint
             Header set Content-Disposition attachment
</LocationMatch>

ForceType application/vnd.openxmlformats–officedocument.presentationml.slideshow Header 设置 Content-Disposition 附件

4

1 回答 1

1

不确定您希望将这些应用到哪个方向,而且我不是 apache 用户,但标题操作很简单。选择您的请求/响应事件,匹配适当的字符串,标题操作是:

HTTP::header replace Content-Type application/vnd.ms-powerpoint
HTTP::header insert Content-Disposition attachment
于 2016-07-20T16:37:17.010 回答