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

          <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
           
          主站蜘蛛池模板: 深水埗区| 清新县| 南汇区| 新宁县| 阜南县| 常州市| 乡城县| 塘沽区| 花垣县| 三台县| 沙雅县| 彰武县| 仁寿县| 麻栗坡县| 喀喇沁旗| 云霄县| 嘉峪关市| 丰台区| 包头市| 黑山县| 正定县| 遂昌县| 二手房| 天峻县| 秦安县| 饶阳县| 阿坝县| 贡山| 武邑县| 湘潭市| 临沭县| 庄河市| 离岛区| 永善县| 沈丘县| 彩票| 株洲县| 沁水县| 广德县| 益阳市| 黄骅市|