[CentOS-mirror] directory index forbidden by rule, when i setup the apache access site

Mon Feb 5 16:56:12 UTC 2007
Nate Hudson <nate at unbornmedia.com>

I think this should work:

Change the line in your VirtualHost from 'AllowOverride None' to  
'AllowOverride All' and then restart httpd.

Depending on your global Directory Index setting, that may turn on  
the Index for your /var/ftp/mirror/ directory.

If not, put an .htaccess in /var/ftp/mirror/ that reads: Options  
+Indexes

That should do it.


-Nate


On Feb 4, 2007, at 4:05 AM, Kelphon wrote:

> Dear all
> 	I have setup a sync with mirror.centos.org at shanghai in china.
> 	Then I setup the apache with the following configuration
> <VirtualHost *:80>
> ServerName mirror.kingstor.com
> ServerAlias mirrors.kingstor.com
> DocumentRoot "/var/ftp/mirror"
> Options Indexes FollowSymLinks MultiViews
> <Directory "/var/ftp/mirror/">
>     Options Indexes FollowSymLinks MultiViews
>     AllowOverride None
>     Order allow,deny
>     Allow from all
> </Directory>
> #SuexecUserGroup mirror mirror
> </VirtualHost>
>
> And I encounter the problem:
> When I browser http://mirror.kingstor.com/ I get 404 error
> When I browser http://mirror.kingstor.com/centos/ I get the centos  
> mirror's
> directory list.
>
> When is check the error_log file I found the following error message
> [Sun Feb 04 17:08:51 2007] [error] [client 218.1.223.70] Directory  
> index
> forbidden by rule: /var/ftp/mirror/
> [Sun Feb 04 17:08:51 2007] [error] [client 218.1.223.70] File does not
> exist: /var/ftp/mirror/error
> [Sun Feb 04 17:08:56 2007] [error] [client 218.1.223.70] File does not
> exist: /var/ftp/mirror/favicon.ico
>
> ** Directory index forbidden by rule, **
>
> How to fix this error ? Thank you in advance.;)
>
>
>
>
> _______________________________________________
> CentOS-mirror mailing list
> CentOS-mirror at centos.org
> http://lists.centos.org/mailman/listinfo/centos-mirror





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-mirror/attachments/20070205/8f971e38/attachment-0004.html>