Re: Treate .sh and .bash the same way Apache2
On 10/23/2019 3:51 AM, Kushal Kumaran wrote:
> john doe <johndoe65534@mail.com> writes:
>
>> <snip>
>>
>> Next step is to figure out how to do the same for file that don't have
>> an extension that I can use but they always start with the same pattern:
>>
>> xxx.abc
>> xxx.def
>> xxx.ghi
>>
>
> https://httpd.apache.org/docs/2.4/mod/mod_mime_magic.html
>
> Note the caution about potential performance issues.
>
Thanks for this, the following looks to do it as well:
<FilesMatch "^<START-OF-FILE>*">
ForceType text/plain
Header set Content-Disposition attachment
</FilesMatch>
--
John Doe
Reply to: