diff --git a/2.Common_services/5.Nginx/vhost_skyreach.conf b/2.Common_services/5.Nginx/vhost_skyreach.conf
index 26c8538920938891e543d3f464b573405578b119..d2b31516d4e4ef6edbee1227c15c381edbaf5903 100644
--- a/2.Common_services/5.Nginx/vhost_skyreach.conf
+++ b/2.Common_services/5.Nginx/vhost_skyreach.conf
@@ -52,7 +52,7 @@ server {
 	}
 	# APT proxy
 	location /apt {
-		location ~ ^/apt/(http|https)/([\w\.\-\_]+.ubuntu.com/ubuntu|panel.ubicast.eu/packaging/apt)/(.*)$ {
+		location ~ ^/apt/(http|https)/([\w\.\-\_]+.ubuntu.com/ubuntu|ftp.debian.org/debian|mozilla.debian.net|panel.ubicast.eu/packaging/apt)/(.*)$ {
 			resolver 127.0.0.1;
 			proxy_pass $1://$2/$3;
 			proxy_cache uc-apt-cache;
diff --git a/3.New_server_deployment/4.APT_upgrade/0_setup.sh b/3.New_server_deployment/4.APT_upgrade/0_setup.sh
index 977382ab5c6f0163f7032ba48697cc6248f46078..aa0c157cb3bdad3c8c7821e105c58fad508bf804 100755
--- a/3.New_server_deployment/4.APT_upgrade/0_setup.sh
+++ b/3.New_server_deployment/4.APT_upgrade/0_setup.sh
@@ -15,10 +15,10 @@ if ( rgrep '14.04' /etc/lsb-release >/dev/null ); then
 fi
 
 # modify sources.list to use ubicast cache
-if ( ! test -z ${APT_CACHE_HOST} ); then
-	if ( ! grep "${APT_CACHE_HOST}" /etc/apt/sources.list >/dev/null ); then
-		echo "Updating /etc/apt/sources.list to use cache ${APT_CACHE_HOST}."
-		sed -i "s@http://@http://${APT_CACHE_HOST}/@" /etc/apt/sources.list
+if ( ! test -z ${APT_CACHE_URL} ); then
+	if ( ! grep "${APT_CACHE_URL}" /etc/apt/sources.list >/dev/null ); then
+		echo "Updating /etc/apt/sources.list to use cache ${APT_CACHE_URL}."
+		sed -i "s@http://@${APT_CACHE_URL}@" /etc/apt/sources.list
 	fi
 fi
 
diff --git a/global-conf.sh b/global-conf.sh
index 36fe5195061e7d7ee60d03b878c9a07598f52e71..d54441d21e04861f1d7ae014d338d4b8fb677177 100644
--- a/global-conf.sh
+++ b/global-conf.sh
@@ -22,7 +22,7 @@ NTP_SERVER='ntp.ubuntu.com'
 SSL_CERTIFICATE='/etc/ssl/certs/ssl-cert-snakeoil.pem'
 SSL_CERTIFICATE_KEY='/etc/ssl/private/ssl-cert-snakeoil.key'
 # APT sources
-APT_CACHE_HOST=
+APT_CACHE_URL=
 
 # -- Shell --
 # ubicast shell account