[CentOS-mirror] CentOS Mirror

Mon May 14 07:12:11 UTC 2018
Anssi Johansson <avij at centosproject.org>

Temur Maisuradze kirjoitti 1.5.2018 klo 17.08:
> Hello,
> 
> I have done setup of the new mirror, initial sync and cron job.
> 
> HTTP: http://centos.grena.ge/
> HTTPS: http://centos.grena.ge/
> 
> Sync schedule: Every 2 hrs
> Bandwidth: 1 Gbps
> Location: Tbilisi, Georgia
> Sponsor: GRENA
> Sponsor URL: https://www.grena.ge/
> IPv4 address to authorize: 217.147.225.74
> Email contact: sysadmin at grena.ge
> Mirroring AltArch: no
> 
> Best Regards,
> Temur Maisuradze
> System Administrator

Hmm, your mirror would be gladly accepted, but I ran into an issue while 
validating your mirror. My own mirror checking script (written in Perl) 
said that it could not download some files, but accessing those same 
files with a normal browser worked OK.


This works (edited for brevity):

$ telnet centos.grena.ge 80
GET /timestamp.txt HTTP/1.1
Host: centos.grena.ge
User-Agent: x
Accept: */*

HTTP/1.1 200 OK
Server: Apache

Mon May 14 04:48:01 UTC 2018


However, these two variants give a 403:

$ telnet centos.grena.ge 80
GET /timestamp.txt HTTP/1.1
Host: centos.grena.ge
Accept: */*

HTTP/1.1 403 Forbidden
Server: Apache

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

$ telnet centos.grena.ge 80
GET /timestamp.txt HTTP/1.1
Host: centos.grena.ge
User-Agent: x

HTTP/1.1 403 Forbidden
Server: Apache

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


Looks like your server requires both User-Agent and Accept fields. Is 
this intentional? I'm afraid this will cause problems with our mirror 
validating scripts, and perhaps also for other users of your mirror who 
don't send an Accept header. Most clients do send the User-Agent header, 
so that is less of a concern.