JAVA & XML & JAVASCRIPT & AJAX & CSS

Web 2.0 技术储备............

  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  77 随笔 :: 17 文章 :: 116 评论 :: 0 Trackbacks
http://support.microsoft.com/?scid=kb%3Ben-us%3B306231&x=16&y=11

You can resolve the problem on the Apache Web server side if you add the correct MIME type for the HTC behavior with the following command:

AddType text/x-component .htc

If the command AddType is not found or is not available, follow these steps to add the MIME type text/x-component for the .htc file manually to the Apache Web server.
  1. Locate the directory /Etc/apache/.
  2. Open the file Mime.types.
  3. Add the following line to the file: text/x-component htc
  4. Save and close the file.
  5. Restart the Apache Web server. The Mime.types file is reloaded after you type: /usr/apache/bin/apachectl restart

如上所说修改Apache配置文件:
    1.修改 /apache2/conf/mime.types文件,在末尾增加一行:text/x-component htc
    2.修改 /apache2/conf/httpd.conf文件,在末尾增加一行:AddType text/x-component .htc 
    3.重启apache服务器
    4.清空IE缓存测试下,问题解决了(这个还是有必要的)。

    如果增加 AddType text/x-component .htc 后无法启动Apache,就不要增加了。
    从上面的文档来说其实只要修改其中一个就行了。 

posted on 2009-01-06 17:40 Web 2.0 技术资源 阅读(3938) 评论(0)  编辑  收藏 所属分类: 原创作品

只有注册用户登录后才能发表评论。


网站导航: