Monthly Archives: February 2017

http reverse proxy

1. pound

https://help.ubuntu.com/community/Pound

/etc/pound/pound.cfg

 

2. squid

# /etc/squid/squid.conf

# same public IP for ceph.minggr.net, www.example.com, example.com

http_port 80 vhost

cache_peer 192.168.1.1 parent 80 0 no-query originserver name=server_1
acl sites_server_1 dstdomain ceph.minggr.net
cache_peer_access server_1 allow sites_server_1

cache_peer 192.168.1.2 parent 80 0 no-query originserver name=server_2
acl sites_server_2 dstdomain www.example.com example.com
cache_peer_access server_2 allow sites_server_2