免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123下一页
最近访问板块 发新帖
查看: 10086 | 回复: 28
打印 上一主题 下一主题

[Web] 虚拟主机问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-01-15 15:35 |只看该作者 |倒序浏览
尊敬的站长,我的虚拟主机不能访问,访问后的错误提示是Forbidden,...no permit .
我看了该主机的log文件后,内容如下:Permission denied: /var/www/personal/pioneer/.htaccess pcfg_openfi
le: unable to check htaccess file, ensure it is readable


请问该如何解决?谢谢!盼望你的答复!

论坛徽章:
0
2 [报告]
发表于 2003-01-15 16:55 |只看该作者

虚拟主机问题

原帖由 "原告" 发表:
尊敬的站长,我的虚拟主机不能访问,访问后的错误提示是Forbidden,...no permit .
我看了该主机的log文件后,内容如下:Permission denied: /var/www/personal/pioneer/.htaccess pcfg_openfi
le: unable to check htaccess file, ensure it is readable


请问该如何解决?谢谢!盼望你的答复!

贴配置文件,就需要虚拟主机那一小块的,不用全贴

论坛徽章:
0
3 [报告]
发表于 2003-01-15 17:09 |只看该作者

虚拟主机问题

NameVirtualHost 210.43.xx.x

<VirtualHost 210.43.xx.x >;
ServerAdmin support@xxx.edu.cn
DocumentRoot /var/www/html
ServerName www.xx.edu.cn
Errorlog /var/www/www.log
</VirtualHost>;

<VirtualHost 210.43.xx.x >;
ServerAdmin xxxx@xxx.edu.cn
DocumentRoot /var/www/personal/juit
ServerName juit.jsu.edu.cn
Errorlog /var/www/personal/juit.log
</VirtualHost>;

<VirtualHost 210.43.xx.x >;
ServerAdmin support@xxx.edu.cn
DocumentRoot /var/www/personal/pioneer
ServerName pioneer.xxx.edu.cn
Errorlog /var/www/personal/pioneer.log
</VirtualHost>;

论坛徽章:
0
4 [报告]
发表于 2003-01-15 17:19 |只看该作者

虚拟主机问题

请帮助,谢谢!

论坛徽章:
0
5 [报告]
发表于 2003-01-15 17:29 |只看该作者

虚拟主机问题

原帖由 "原告" 发表:
NameVirtualHost 210.43.xx.x

<VirtualHost 210.43.xx.x >;
ServerAdmin support@xxx.edu.cn
DocumentRoot /var/www/html
ServerName www.xx.edu.cn
Errorlog /var/www/www.log
</VirtualHost>;

<VirtualHost 210.43.xx.x >;
ServerAdmin xxxx@xxx.edu.cn
DocumentRoot /var/www/personal/juit
ServerName juit.jsu.edu.cn
Errorlog /var/www/personal/juit.log
</VirtualHost>;

<VirtualHost 210.43.xx.x >;
ServerAdmin support@xxx.edu.cn
DocumentRoot /var/www/personal/pioneer
ServerName pioneer.xxx.edu.cn
Errorlog /var/www/personal/pioneer.log
</VirtualHost>;


配置文件没有问题呀,请确定上面用到的目录有没有创建

论坛徽章:
0
6 [报告]
发表于 2003-01-15 17:33 |只看该作者

虚拟主机问题

确认已经创建了!!!
我访问pioneer.XXX.edu.cn,出现Forbidden的错误提示

论坛徽章:
0
7 [报告]
发表于 2003-01-15 17:38 |只看该作者

虚拟主机问题

我查看一个虚拟主机的log文件,内容如下:
Permission denied: /var/www/personal/pioneer/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

论坛徽章:
0
8 [报告]
发表于 2003-01-15 17:49 |只看该作者

虚拟主机问题

原帖由 "原告" 发表:
我查看一个虚拟主机的log文件,内容如下:
Permission denied: /var/www/personal/pioneer/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

你有目录控制文件?
1:请查看这个文件/var/www/personal/pioneer/.htaccess
2:贴httpd.conf关于/var/www/personal/pioneer/这个目录的内容

论坛徽章:
0
9 [报告]
发表于 2003-01-15 18:03 |只看该作者

虚拟主机问题

谢谢你的回复

/var/www/personal/pioneer没有.htaccess这个文件

httpd中关于/var/www/personal/pioneer的内容是:
<VirtualHost 210.43.xx.xx >;
ServerAdmin support@xx.edu.cn
DocumentRoot /var/www/personal/pioneer
ServerName pioneer.xx.edu.cn
Errorlog /var/www/personal/pioneer.log
</VirtualHost>;

论坛徽章:
0
10 [报告]
发表于 2003-01-15 18:22 |只看该作者

虚拟主机问题

原帖由 "原告" 发表:
谢谢你的回复

/var/www/personal/pioneer没有.htaccess这个文件

httpd中关于/var/www/personal/pioneer的内容是:
<VirtualHost 210.43.xx.xx >;
ServerAdmin support@xx.edu.cn
DocumentRoot /var/www/personal/pioneer
ServerName pioneer.xx.edu.cn
Errorlog /var/www/personal/pioneer.log
</VirtualHost>;

你先touch一个那个.htaccess文件试试
要是不行就贴整个httpd.conf吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP