|
|
浏览器中输入HTTP://lcoalhost/
出现 403 Forbidden
You don't have permission to access / on this server.
所作工作:
1.下载安装包 httpd-2.2.4.tar.gz
2.进终端 提升为ROOT 用户 tar zxvf httpd-2.2.4.tar.gz
3../configure --prefix=/opt/apache/
4.make
5.make install
测试正常工作
6.新建一网页 命名为index.html 放在/home/lujia/kk/下(lujia 是我的用户名 kk是新建的一文件家)
7.进ROOT帐户 将 /opt/apache/conf/httpd.conf 的属性该为lujia也有读写的权限
8. 回到lujia站乎下修改/opt/apache/conf/httpd.conf
将DocumentRoot "/opt/apache/htdocs/" 改为"/home/lujia/kk/
<Directory "/home/lujia/"> 此处也改为“/home/lujia/kk/"
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
保存后测试提示403 错误
请教各位高手指点一二 |
|