红联Linux门户
Linux帮助

求助!!配置apache服务器时遇到403错误

发布时间:2011-12-06 17:11:40来源:红联作者:sailiang
在配置apache的userdir模块时,测试提示出错!
wget http://192.168.20.128/~test
--16:44:13-- http://192.168.20.128/%7Etest
=> `%7Etest'
Connecting to 192.168.20.128:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
16:44:13 ERROR 403: Forbidden.
我是一名linux菜鸟,求大侠解救~~
配置/etc/httpd/conf/httpd.conf文件的一部分:

#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disable

#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
UserDir public_html


#
# Control access to UsesiterDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#

AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec

Order allow,deny
Allow from all


Order deny,allow
Deny from all




谢谢~~
文章评论

共有 0 条评论