fastest connections

gate2vn

Verified User
Joined
Nov 9, 2004
Messages
483
Location
Oslo
I am installing DA on a new CentOS 7, by using the command "bash <(curl -Ss https://www.directadmin.com/setup.sh) auto"
It runs fastest connection test, and set to the Singapore-based mirror.
Fastest server is files-sg.directadmin.com at 1394606 B/s
downloadserver is already set to files-sg.directadmin.com

However, when it starts downloading packages, it downloads from the UK-based mirror

--2021-03-06 05:59:36-- https://update.directadmin.com/cgi-bin/daupdate?uid=1785&lid=5102&os=ES+7.0+64&redirect=ok
Resolving update.directadmin.com (update.directadmin.com)... 167.172.23.237, 66.51.122.131
Connecting to update.directadmin.com (update.directadmin.com)|167.172.23.237|:443... connected.
HTTP request sent, awaiting response...
HTTP/1.1 302 Found
Server: nginx
Date: Sat, 06 Mar 2021 05:59:37 GMT
Content-Type: text/html; charset=iso-8859-1
Content-Length: 255
Connection: keep-alive
x-return-code: redirect
X-md5: a32ffb3693c405481f5295aa2c6b9bd7
Location: http://185.42.221.168/stable_releases_26487463753/packed_es70_64.tar.gz
Location: http://185.42.221.168/stable_releases_26487463753/packed_es70_64.tar.gz [following]
--2021-03-06 05:59:38-- http://185.42.221.168/stable_releases_26487463753/packed_es70_64.tar.gz
Connecting to 185.42.221.168:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Sat, 06 Mar 2021 05:59:39 GMT
Server: Apache/2
Upgrade: h2,h2c
Connection: Upgrade, Keep-Alive
Last-Modified: Tue, 29 Sep 2020 21:06:10 GMT
ETag: "bd7fb0-5b07a26fa7480"
Accept-Ranges: bytes
Content-Length: 12418992
Vary: User-Agent
Keep-Alive: timeout=2, max=100
Content-Type: application/x-gzip
Content-Encoding: x-gzip
Length: 12418992 (12M) [application/x-gzip]
Saving to: '/usr/local/directadmin/update.tar.gz'

I wonder why that happens?
 
Looks like a 3rd party mirror

There is no UK mirror

Code:
cd /usr/local/directadmin/custombuild
./build update
./build set_fastest


and it will go through the servers.txt to find you a quicker files server.

When using the setup.sh in the normal interface mode (user input), it will ask to find the fastest mirror.

Selecting 'y' will do this for you, so no need to run this post-install (unless you selected 'n', have an older system, or one of the servers is dead).

You can manually set the value you'd like in your options.conf to override it, e.g.,

check your option.conf
downloadserver=
 
Thanks for contributing to my thread. However, as I mentioned, that was the installation in auto mode. DirectAdmin was not installed yet on that fresh server.

And initially, the installation connected to update.directadmin.com at the IP address 167.172.23.237, then it's redirected 302 to http://185.42.221.168/ which is files2.directadmin.com. It's not 3rd-party mirror. Some code in the server 167.172.23.237 did redirect.

That's why I am asking.
 
Back
Top