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

ForceType application/vnd.openxmlformats–officedocument.presentationml.slideshow Header set Content-Disposition attachment

Mr.T
  • 33
  • 6
  • this is fairly simple to do, but I'm not an apache user, so will need a little help to provide an answer. Is the locationMatch matching inbound request on the location header, or the URI? And I'm assuming the ForceType is to set the Content-Type header? Finally, is this for response to client? – Jason Rahm Jul 18 '16 at 18:28
  • Yes, it's Content-Type. Also, yes it's for response to client – Mr.T Jul 21 '16 at 15:48

1 Answers1

1

Not sure which direction you are wanting these applied, and I'm not an apache user, but the header actions are simple. Pick your request/response event, match the appropriate string and the header actions are:

HTTP::header replace Content-Type application/vnd.ms-powerpoint
HTTP::header insert Content-Disposition attachment
Jason Rahm
  • 670
  • 3
  • 14