Mr.T
Mr.T

Reputation: 33

How to implements these mime types in F5 - irules

<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

Upvotes: 0

Views: 413

Answers (1)

Jason Rahm
Jason Rahm

Reputation: 710

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

Upvotes: 1

Related Questions