虚拟主机问题

王朝厨房·作者佚名  2007-01-05
窄屏简体版  字體: |||超大  

尊敬的站长,我的虚拟主机不能访问,访问后的错误提示是Forbidden,...no permit .

我看了该主机的log文件后,内容如下:Permission denied: /var/www/personal/pioneer/.htaccess pcfg_openfi

le: unable to check htaccess file, ensure it is readable

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

南非蜘蛛 回复于:2003-01-15 16:55:41

[quote:41babea9fe="原告"]尊敬的站长,我的虚拟主机不能访问,访问后的错误提示是Forbidden,...no permit .

我看了该主机的log文件后,内容如下:Permission denied: /var/www/personal/pioneer/.htaccess pcfg_openfi

le: unable to check htaccess file, ensure it is readable

请问该如何解决?谢谢!盼望你的答复![/quote:41babea9fe]

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

原告 回复于:2003-01-15 17:09:44

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>

原告 回复于:2003-01-15 17:19:50

请帮助,谢谢!

南非蜘蛛 回复于:2003-01-15 17:29:29

[quote:74baabed81="原告"]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>[/quote:74baabed81]

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

原告 回复于:2003-01-15 17:33:36

确认已经创建了!!!

我访问pioneer.XXX.edu.cn,出现Forbidden的错误提示

原告 回复于:2003-01-15 17:38:16

我查看一个虚拟主机的log文件,内容如下:

Permission denied: /var/www/personal/pioneer/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable

南非蜘蛛 回复于:2003-01-15 17:49:12

[quote:d059d91e74="原告"]我查看一个虚拟主机的log文件,内容如下:

Permission denied: /var/www/personal/pioneer/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable[/quote:d059d91e74]

你有目录控制文件?

1:请查看这个文件/var/www/personal/pioneer/.htaccess

2:贴httpd.conf关于/var/www/personal/pioneer/这个目录的内容

原告 回复于:2003-01-15 18:03:16

谢谢你的回复

/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>

南非蜘蛛 回复于:2003-01-15 18:22:43

[quote:c7c97d0062="原告"]谢谢你的回复

/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>[/quote:c7c97d0062]

你先touch一个那个.htaccess文件试试

要是不行就贴整个httpd.conf吧

原告 回复于:2003-01-15 18:49:37

告诉我你的email吧,我发给你

原告 回复于:2003-01-15 18:56:07

我touch了一个.htaccess也没有用

南非蜘蛛 回复于:2003-01-15 18:58:58

[quote:a976e5327c="原告"]我touch了一个.htaccess也没有用[/quote:a976e5327c]

我想问一下,你以前有改动过什么吗?

原告 回复于:2003-01-15 19:39:49

什么都没有改动过!

能告诉我你的QQ吗?

原告 回复于:2003-01-15 21:47:09

You don't have permission to access / on this server.

miling 回复于:2003-01-16 09:44:29

可能是index问题,apache默认是在根目录下找index.html,如果没找到,看看当前目录是否可以索引,如果不行,则Forbidden。

估计你的网页文件名都以.htm为扩展名,建议修改httpd.conf:

DirectoryIndex index.html

||

\/

DirectoryIndex index.htm index.html

南非蜘蛛 回复于:2003-01-16 15:24:26

[quote:ba6732897c="miling"]可能是index问题,apache默认是在根目录下找index.html,如果没找到,看看当前目录是否可以索引,如果不行,则Forbidden。

估计你的网页文件名都以.htm为扩展名,建议修改httpd.conf:

DirectoryIndex index.html

..........[/quote:ba6732897c]

把pioneer目录的属性

drwxr--r-- 改成了drwxr-xr-x 就可以了

alalei 回复于:2003-01-16 15:56:46

http://210.43.64.5/

南非蜘蛛 回复于:2003-01-16 15:58:31

[quote:ef5d5a184d="alalei"]http://210.43.64.5/

[/quote:ef5d5a184d]

什么意思????

原告 回复于:2003-01-16 16:40:31

昨天那个Forbidden问题已经解决了,

其实和httpd.conf无关,

我把一个虚拟主机的目录的属性

drwxr--r-- 改成了drwxr-xr-x 就可以了!

wjg5256 回复于:2003-05-10 23:50:11

谢谢你们的谈话,

坚决支持本网站

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航