Debian 8 Jessie
Sponsored Link

Reverse Proxy Settings2015/05/17

Configure Squid as a reverse proxy server.
[1] Configure Squid.
vi /etc/squid3/squid.conf
# near line 1217: add ( allow all http access )

http_access allow all
# line 1618: specify backend Web server

80 accel
# line 2811: add

cache_peer parent 80 0 no-query originserver
# line 2951: add (memory cache size)

cache_mem 256 MB
# line 3240: add

# number means ⇒ [disk cache size] [number of directories on top level] [number of directories on 2nd level]

cache_dir ufs /var/spool/squid3 256 16 256
# line 5190: add (define hostname)

systemctl restart squid3
[2] Change DNS or Router's settings if need, and make it listen http requests on Squid server. It's OK if backend http server responds like follows.
Matched Content