File: 10-apt-cacher-ng.conf

package info (click to toggle)
apt-cacher-ng 0.8.0-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,768 kB
  • ctags: 1,640
  • sloc: cpp: 14,741; ansic: 462; perl: 376; sh: 357; makefile: 88
file content (14 lines) | stat: -rw-r--r-- 674 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# This is a config file snippet for lighttpd
# 
# Original description:
# It seems rather trivial but lighttpd 1.4 doesn't allow proxy and rewrite at
# the same time, so remapping urls into apt-cacher-ng is trickier than need be
# when used with lighttpd. Also, for users in very restrictive environments,
# opening "funny" ports is not always simple but opening 443/https is well
# understood and can pass review without a glance.

10-apt-cacher-ng.conf:
server.modules   += ( "mod_proxy" )
$HTTP["url"] =~ "^/(ftp.debian.org|security.debian.org|archive.ubuntu.com|security.ubuntu.com)/" {
        proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => "3142" ) ) )
}