注:如果你的网页主目录下面的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, ldtrain@163.com 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.
注:如果访问网页出现拒绝访问的情况,
Forbidden
You don‘t have permission to access /~web on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
原来是httpd.conf文件中的权限访问控制设置不对,具体是以下这段:
<Directory /你的web主目录的位置>
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
其中的Deny from all应该设置成Allow from all,这是针对根目录/的一个设置,因为我的自定义目录是/myweb/。