开发者

printing different 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜