調試網頁時出錯,無意中發現出錯頁的源文件中有這樣一段注釋:

          <title>404 Not Found</title>
          <h1>404 Not Found</h1>
          /asfsfdsd.jsp was not found on this server.
          <p /><hr />
          <small>
          Resin 2.0.3 (built Wed Oct 17 10:11:08 PDT 2001)
          </small>
          </address>

          <!--
            -- Unfortunately, Microsoft has added a clever new
            -- "feature" to Internet Explorer.  If the text in
            -- an error's message is "too small", specifically
            -- less than 512 bytes, Internet Explorer returns
            -- its own error message.  Yes, you can turn that
            -- off, but *surprise* it's pretty tricky to find
            -- buried as a switch called "smart error
            -- messages"  That means, of course, that many of
            -- Resin's error messages are censored by default.
            -- And, of course, you'll be shocked to learn that
            -- IIS always returns error messages that are long
            -- enough to make Internet Explorer happy.  The
            -- workaround is pretty simple: pad the error
            -- message with a big comment to push it over the
            -- five hundred and twelve byte minimum.  Of course,
            -- that's exactly what you're reading right now.
            -->

          這就叫以牙還牙:凡是用Resin服務器的網站,都不會出現M$的惱人友好信息了。



          版權所有 羅明
          posted on 2006-02-13 18:27 羅明 閱讀(1023) 評論(0)  編輯  收藏 所屬分類: PersonalServer
           
          主站蜘蛛池模板: 余江县| 洛浦县| 望谟县| 东光县| 怀化市| 海城市| 公安县| 南投县| 梁平县| 刚察县| 铜鼓县| 南雄市| 靖边县| 吐鲁番市| 滨州市| 遂宁市| 邵阳市| 平昌县| 天柱县| 福泉市| 望城县| 洞头县| 瓦房店市| 博湖县| 广汉市| 罗源县| 彰化市| 弋阳县| 集安市| 西林县| 佳木斯市| 浪卡子县| 天镇县| 兖州市| 探索| 建德市| 樟树市| 中方县| 河南省| 卫辉市| 盱眙县|