Группа :: Разработка/Прочее
Пакет: nginx-apt-cache
Главная Изменения Спек Патчи Исходники Загрузить Gear Bugs and FR Repocop
## mkdir -p /mnt/mirror/altlinux; chown _nginx /mnt/mirror/altlinux
server {
listen localhost:80;
server_name localhost localhost.localdomain;
location /altlinux/ {
root /mnt/mirror;
error_page 404 = /fetch$uri;
error_page 403 = /fetch$uri;
}
location /fetch/altlinux/ {
internal;
proxy_pass http://ftp.altlinux.org/pub/distributions/ALTLinux/;
#proxy_pass http://ftp.linux.kiev.ua/pub/Linux/ALT/;
proxy_store /mnt/mirror/$request_uri;
proxy_store_access user:rw group:rw all:r;
}
}