在配置apache完成之后,一切显示正常,在默认documentroot下面调试也完全可以,但是使用
/etc/apache2/sites-available# sudo gedit default
修改documentroot地址为:
DocumentRoot /media/sda5/work/web
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
allow from all
Satisfy all
</Directory>
<Directory /media/sda5/work/web >
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
sda5为我挂载的原windows系统的D盘,分区格式为FAT32,名为web的文件夹权限也已经打开,但是在访问
http://127.0.0.1/
的时候出现
Forbidden
You don't have permission to access / on this server.
Apache/2.2.3 (Ubuntu) PHP/5.2.1 Server at 127.0.0.1 Port 80
documentroot指向路径,如果是/var/www/public_file/则使用正常,/media/sda5/work/web则出错。
/etc/fstab 里面的数据为:
# /dev/sda5 -- converted during upgrade to edgy
UUID=1421-3182 /media/sda5 vfat defaults,utf8,umask=007,gid=46 0 0
请高手帮忙,在线等。。。
配置apache出现问题:You don't have permission to access
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 13
- 注册时间: 2006-09-27 3:38
- drivel
- 帖子: 1918
- 注册时间: 2006-07-08 9:21
- 来自: University of Science and Technology Beijing
- 联系:
如果你没有主文档的话,apache会要去list,你又没开。。
不如
<Directory /media/sda5/work/web >
Options Indexes FollowSymLinks MultiViews All
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
不如
<Directory /media/sda5/work/web >
Options Indexes FollowSymLinks MultiViews All
AllowOverride None
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>
- adqin
- 帖子: 1417
- 注册时间: 2007-01-24 22:07
- 来自: http://adqin.cn
- 联系:
- drivel
- 帖子: 1918
- 注册时间: 2006-07-08 9:21
- 来自: University of Science and Technology Beijing
- 联系:
-
- 帖子: 13
- 注册时间: 2006-09-27 3:38