We've set up a new CentOS mirror. Currently ftp only.
url: ftp://mirror.nyi.net/centos sync: twice daily location: New York, NY U.S.A. bandwidth cap: 25 Mbps organization: New York Internet organization url: http://nyi.net email: mirror at nyi.net
thanks
S. Sutherland /////NYI
Sadiq Sutherland wrote:
We've set up a new CentOS mirror. Currently ftp only.
url: ftp://mirror.nyi.net/centos sync: twice daily location: New York, NY U.S.A. bandwidth cap: 25 Mbps organization: New York Internet organization url: http://nyi.net email: mirror at nyi.net
thanks
S. Sutherland /////NYI
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Very minor correction. Our network admin set the bandwidth cap at 35Mbps (I initially requested 25Mbps dedicated to the mirror). We're not sure how much traffic the CentOS Mirror will generate so we'll increase if necessary.
thanks
S. Sutherland /////NYI http://www.nyi.net
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.;)
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@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
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/">
You just need to remove the trailing slash in the above line, ie: <Directory "/var/ftp/mirror">
Dear Neta,
Thanks for you kindly help,
I have change the config file to the following. But it can not work. Then I add a .htaccess file in /var/ftp/mirror/ the error is the same.
So I change the DocumentRoot to /var/ftp/mirror/centos The error is the same. So I think the directory permission is right.
Do you have any other mind?
<VirtualHost *:80>
ServerName mirror.kingstor.com
ServerAlias mirrors.kingstor.com
DocumentRoot "/var/ftp/mirror"
Options Indexes FollowSymLinks MultiViews
<Directory "/var/ftp/mirror"> - this line I remove the trailing slash
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#SuexecUserGroup mirror mirror
</VirtualHost>
_____
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] 代表 Nate Hudson 发送时间: 2007年2月6日 0:56 收件人: Mailing list for CentOS mirrors. 主题: Re: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
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@centos.org
Nin Hao!
SELinux?
This always screws me up at times. Tail your messages log to look for any SELinux policy exceptions....
Cheers, RF.
On 7 Feb 2007, at 9:18 AM, Kelphon wrote:
Dear Neta,
Thanks for you kindly help,
I have change the config file to the following. But it can not work. Then I add a .htaccess file in /var/ftp/mirror/ the error is the same.
So I change the DocumentRoot to /var/ftp/mirror/centos The error is the same. So I think the directory permission is right.
Do you have any other mind?
<VirtualHost *:80>
ServerName mirror.kingstor.com
ServerAlias mirrors.kingstor.com
DocumentRoot "/var/ftp/mirror"
Options Indexes FollowSymLinks MultiViews
<Directory "/var/ftp/mirror"> - this line I remove the trailing slash
Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all
</Directory>
#SuexecUserGroup mirror mirror
</VirtualHost>
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror- bounces@centos.org] 代表 Nate Hudson 发送时间: 2007年2月6日 0:56 收件人: Mailing list for CentOS mirrors. 主题: Re: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
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@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
Dear Richard
My SELinux is disabled
/etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
#enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
_____
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] 代表 Richard Ford 发送时间: 2007年2月7日 9:30 收件人: Mailing list for CentOS mirrors. 主题: Re: 答复: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
Nin Hao!
SELinux?
This always screws me up at times. Tail your messages log to look for any SELinux policy exceptions....
Cheers,
RF.
On 7 Feb 2007, at 9:18 AM, Kelphon wrote:
Dear Neta,
Thanks for you kindly help,
I have change the config file to the following. But it can not work. Then I add a .htaccess file in /var/ftp/mirror/ the error is the same.
So I change the DocumentRoot to /var/ftp/mirror/centos The error is the same. So I think the directory permission is right.
Do you have any other mind?
<VirtualHost *:80>
ServerName mirror.kingstor.com
ServerAlias mirrors.kingstor.com
DocumentRoot "/var/ftp/mirror"
Options Indexes FollowSymLinks MultiViews
<Directory "/var/ftp/mirror"> - this line I remove the trailing slash
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#SuexecUserGroup mirror mirror
</VirtualHost>
_____
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] 代表 Nate Hudson 发送时间: 2007年2月6日 0:56 收件人: Mailing list for CentOS mirrors. 主题: Re: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
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@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
_______________________________________________
CentOS-mirror mailing list
CentOS-mirror@centos.org
On this line:
<Directory "/var/ftp/mirror/">
Try to remove the trailing / at the end....
RF.
On 7 Feb 2007, at 9:46 AM, Kelphon wrote:
Dear Richard
My SELinux is disabled
/etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
#enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror- bounces@centos.org] 代表 Richard Ford 发送时间: 2007年2月7日 9:30 收件人: Mailing list for CentOS mirrors. 主题: Re: 答复: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
Nin Hao!
SELinux?
This always screws me up at times. Tail your messages log to look for any SELinux policy exceptions....
Cheers,
RF.
On 7 Feb 2007, at 9:18 AM, Kelphon wrote:
Dear Neta,
Thanks for you kindly help,
I have change the config file to the following. But it can not work. Then I add a .htaccess file in /var/ftp/mirror/ the error is the same.
So I change the DocumentRoot to /var/ftp/mirror/centos The error is the same. So I think the directory permission is right.
Do you have any other mind?
<VirtualHost *:80>
ServerName mirror.kingstor.com
ServerAlias mirrors.kingstor.com
DocumentRoot "/var/ftp/mirror"
Options Indexes FollowSymLinks MultiViews
<Directory "/var/ftp/mirror"> - this line I remove the trailing slash
Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all
</Directory>
#SuexecUserGroup mirror mirror
</VirtualHost>
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror- bounces@centos.org] 代表 Nate Hudson 发送时间: 2007年2月6日 0:56 收件人: Mailing list for CentOS mirrors. 主题: Re: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
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@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list
CentOS-mirror@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
I have remove the trailing / at the end
_____
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] 代表 Richard Ford 发送时间: 2007年2月7日 10:00 收件人: Mailing list for CentOS mirrors. 主题: Re: 答复: 答复: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
On this line:
<Directory "/var/ftp/mirror/">
Try to remove the trailing / at the end....
RF.
On 7 Feb 2007, at 9:46 AM, Kelphon wrote:
Dear Richard
My SELinux is disabled
/etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
#enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
_____
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] 代表 Richard Ford 发送时间: 2007年2月7日 9:30 收件人: Mailing list for CentOS mirrors. 主题: Re: 答复: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
Nin Hao!
SELinux?
This always screws me up at times. Tail your messages log to look for any SELinux policy exceptions....
Cheers,
RF.
On 7 Feb 2007, at 9:18 AM, Kelphon wrote:
Dear Neta,
Thanks for you kindly help,
I have change the config file to the following. But it can not work. Then I add a .htaccess file in /var/ftp/mirror/ the error is the same.
So I change the DocumentRoot to /var/ftp/mirror/centos The error is the same. So I think the directory permission is right.
Do you have any other mind?
<VirtualHost *:80>
ServerName mirror.kingstor.com
ServerAlias mirrors.kingstor.com
DocumentRoot "/var/ftp/mirror"
Options Indexes FollowSymLinks MultiViews
<Directory "/var/ftp/mirror"> - this line I remove the trailing slash
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#SuexecUserGroup mirror mirror
</VirtualHost>
_____
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] 代表 Nate Hudson 发送时间: 2007年2月6日 0:56 收件人: Mailing list for CentOS mirrors. 主题: Re: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
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@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
_______________________________________________
CentOS-mirror mailing list
CentOS-mirror@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
_______________________________________________
CentOS-mirror mailing list
CentOS-mirror@centos.org
If you place a text file in the / root document directory and then address it directly does it work?
EG:
On 7 Feb 2007, at 10:04 AM, Kelphon wrote:
I have remove the trailing / at the end
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror- bounces@centos.org] 代表 Richard Ford 发送时间: 2007年2月7日 10:00 收件人: Mailing list for CentOS mirrors. 主题: Re: 答复: 答复: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
On this line:
<Directory "/var/ftp/mirror/">
Try to remove the trailing / at the end....
RF.
On 7 Feb 2007, at 9:46 AM, Kelphon wrote:
Dear Richard
My SELinux is disabled
/etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
#enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror- bounces@centos.org] 代表 Richard Ford 发送时间: 2007年2月7日 9:30 收件人: Mailing list for CentOS mirrors. 主题: Re: 答复: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
Nin Hao!
SELinux?
This always screws me up at times. Tail your messages log to look for any SELinux policy exceptions....
Cheers,
RF.
On 7 Feb 2007, at 9:18 AM, Kelphon wrote:
Dear Neta,
Thanks for you kindly help,
I have change the config file to the following. But it can not work. Then I add a .htaccess file in /var/ftp/mirror/ the error is the same.
So I change the DocumentRoot to /var/ftp/mirror/centos The error is the same. So I think the directory permission is right.
Do you have any other mind?
<VirtualHost *:80>
ServerName mirror.kingstor.com
ServerAlias mirrors.kingstor.com
DocumentRoot "/var/ftp/mirror"
Options Indexes FollowSymLinks MultiViews
<Directory "/var/ftp/mirror"> - this line I remove the trailing slash
Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all
</Directory>
#SuexecUserGroup mirror mirror
</VirtualHost>
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror- bounces@centos.org] 代表 Nate Hudson 发送时间: 2007年2月6日 0:56 收件人: Mailing list for CentOS mirrors. 主题: Re: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
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@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list
CentOS-mirror@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list
CentOS-mirror@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
CentOS-mirror mailing list CentOS-mirror@centos.org http://lists.centos.org/mailman/listinfo/centos-mirror
It worked.
I had put index.html file and I get it.
I also changed website’s root to /var/ftp/mirror/centos, it cannot work as /var/ftp/mirror directory.
_____
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] 代表 Richard Ford 发送时间: 2007年2月7日 10:22 收件人: Mailing list for CentOS mirrors. 主题: Re: 答复: 答复: 答复: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
If you place a text file in the / root document directory and then address it directly does it work?
EG:
http://mirror.kingstor.com http://mirror.kingstor.com/test.txt
On 7 Feb 2007, at 10:04 AM, Kelphon wrote:
I have remove the trailing / at the end
_____
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] 代表 Richard Ford 发送时间: 2007年2月7日 10:00 收件人: Mailing list for CentOS mirrors. 主题: Re: 答复: 答复: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
On this line:
<Directory "/var/ftp/mirror/">
Try to remove the trailing / at the end....
RF.
On 7 Feb 2007, at 9:46 AM, Kelphon wrote:
Dear Richard
My SELinux is disabled
/etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
#enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
_____
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] 代表 Richard Ford 发送时间: 2007年2月7日 9:30 收件人: Mailing list for CentOS mirrors. 主题: Re: 答复: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
Nin Hao!
SELinux?
This always screws me up at times. Tail your messages log to look for any SELinux policy exceptions....
Cheers,
RF.
On 7 Feb 2007, at 9:18 AM, Kelphon wrote:
Dear Neta,
Thanks for you kindly help,
I have change the config file to the following. But it can not work. Then I add a .htaccess file in /var/ftp/mirror/ the error is the same.
So I change the DocumentRoot to /var/ftp/mirror/centos The error is the same. So I think the directory permission is right.
Do you have any other mind?
<VirtualHost *:80>
ServerName mirror.kingstor.com
ServerAlias mirrors.kingstor.com
DocumentRoot "/var/ftp/mirror"
Options Indexes FollowSymLinks MultiViews
<Directory "/var/ftp/mirror"> - this line I remove the trailing slash
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
#SuexecUserGroup mirror mirror
</VirtualHost>
_____
发件人: centos-mirror-bounces@centos.org [mailto:centos-mirror-bounces@centos.org] 代表 Nate Hudson 发送时间: 2007年2月6日 0:56 收件人: Mailing list for CentOS mirrors. 主题: Re: [CentOS-mirror] directory index forbidden by rule,when i setup the apache access site
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@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
_______________________________________________
CentOS-mirror mailing list
CentOS-mirror@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
_______________________________________________
CentOS-mirror mailing list
CentOS-mirror@centos.org
http://lists.centos.org/mailman/listinfo/centos-mirror
_______________________________________________
CentOS-mirror mailing list
CentOS-mirror@centos.org
We've set up a new CentOS mirror. Currently ftp only.
url: ftp://mirror.nyi.net/centos sync: twice daily location: New York, NY U.S.A. bandwidth cap: 25 Mbps organization: New York Internet organization url: http://nyi.net email: mirror at nyi.net
thanks
S. Sutherland /////NYI
The above mirror has been added to the mirror database. It should appear in the list shortly.
Cheers!