当前位置: 技术问答>java相关
如何配置Apache的默认目录文件?
来源: 互联网 发布时间:2015-02-01
本文导语: 我在配置Apache的时候,在DirectoryIndex index.html后面加了一句 DirectoryIndex index.jsp 结果就出现: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the...
我在配置Apache的时候,在DirectoryIndex index.html后面加了一句
DirectoryIndex index.jsp
结果就出现:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your
request.
Please contact the server administrator, you@your.address and inform them of the time the
error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
为什么?
DirectoryIndex index.jsp
结果就出现:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your
request.
Please contact the server administrator, you@your.address and inform them of the time the
error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
为什么?
|
不能在后面加新的行,如果要定义自动启动的文档,用空格隔开就可以了。
如:DirectoryIndex index.html index.jsp
如:DirectoryIndex index.html index.jsp