From 131f87749476b1689b4995c37dc2ad98dddd9b00 Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Mon, 11 Apr 2016 02:54:41 +0200 Subject: [PATCH] trying to fix 404 error --- mirror/syncubuntu.sh | 1 + nginx.conf | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mirror/syncubuntu.sh b/mirror/syncubuntu.sh index 2627013..c3cea04 100755 --- a/mirror/syncubuntu.sh +++ b/mirror/syncubuntu.sh @@ -15,6 +15,7 @@ debmirror \ -h ${UBUNTU_MIRROR_SOURCE:-archive.ubuntu.com} \ -d trusty,trusty-updates,trusty-security,trusty-backports \ -d xenial,xenial-updates,xenial-security,xenial-backports \ + --ignore-small-errors \ -r /ubuntu \ --progress \ --method=http \ diff --git a/nginx.conf b/nginx.conf index 480cf3b..c52cd00 100644 --- a/nginx.conf +++ b/nginx.conf @@ -13,7 +13,7 @@ http { sendfile on; keepalive_timeout 10; - gzip off; + gzip on; # default, no host name server { @@ -32,7 +32,7 @@ http { } location /ubuntu/ { - root /var/mirror/ubuntu; + root /var/mirror/ubuntu/; autoindex on; }