本帖最后由 xeqtrl982 于 2010-09-09 10:12:32 编辑

解决方案 »

  1.   

    <Directory />
    ErrorDocument 404 /Error.html
    </Directory>
      

  2.   

    这样怎么会包500错误?
    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    ...
      

  3.   

    直接在.htaccess中写:
    ErrorDocument 404 /Error.html
      

  4.   

    ErrorDocument 404 /Error.html
    引用的路径对不对,比如 ErrorDocument 404 /project/Error.html
      

  5.   

    对了,设置好后最好在服务重启下apache2.2
      

  6.   

    你是设置了所有的URL都跳入INDEX.PHP吧
      

  7.   

    #
    # The mod_mime_magic module allows the server to use various hints from the
    # contents of the file itself to determine its type.  The MIMEMagicFile
    # directive tells the module where the hint definitions are located.
    #
    #MIMEMagicFile conf/magic#
    # Customizable error responses come in three flavors:
    # 1) plain text 2) local redirects 3) external redirects
    #
    # Some examples:
    #ErrorDocument 500 "The server made a boo boo."
    #ErrorDocument 404 /missing.html
    #ErrorDocument 404 "/cgi-bin/missing_handler.pl"
    #ErrorDocument 402 http://www.example.com/subscription_info.html
    #
    看apache的配置文件有这一段内容,应该就明白了