Debian 10 Buster
Sponsored Link

Squid : Configure as Reverse Proxy2019/07/31

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

http_access allow all
# line 1907: change like follows (specify backend Web server for defaultsite)

http_port 3128
http_port 80 accel
https_port 443 accel tls-cert=/etc/letsencrypt/live/ tls-key=/etc/letsencrypt/live/
# line 3239: add

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

cache_mem 256 MB
# line 3637: add

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

cache_dir ufs /var/spool/squid 256 16 256
systemctl restart squid
[3] Change DNS or Router's settings if need, and make it listen HTTP/HTTPS requests on Squid server. It's OK if backend http server responds like follows.
Matched Content