开发者

printing different headers for each types of file

开发者 https://www.devze.com 2023-03-31 03:02 出处:网络
I\'m looking for an example how printing different开发者_StackOverflow社区 headers for each types of file.

I'm looking for an example how printing different开发者_StackOverflow社区 headers for each types of file.

for example:

set the foo:baa in headers .png files.
set the foo:baa2 in headers .txt files

. etc..

It is possible using apache/.htaccess or with some .config file? I hope this is clear. Thanks in advance


How about:

<IfModule mod_headers.c>  
    <Files "*.txt">  
        Header set Header-name "header content"
    </Files>  
</IfModule>

?

0

精彩评论

暂无评论...
验证码 换一张
取 消