Site

Squid

Squid server

- sudo apt-get install openssh g++ openssl-dev

- download Squid 3.1 from website: http://www.squid-cache.org/Versions/

- ./configure --enable-ssl

- make

- make install

- cd /usr/local/squid/var

- sudo chmod a+w cache

- sudo chown nobody cache

- sudo chmod a+w logs

- sudo chown nobody logs

- sudo chmod a+w run

- sudo chown nobody run

- add the following lines to: /usr/local/squid/etc/squid.conf

http_port 80 accel defaultsite=www.facebook.com
cache_peer www.facebook.com parent 80 0 no-query originserver name=webp2p
acl our_sites dstdomain www.facebook.com
http_access allow our_sites
cache_peer_access webp2p allow our_sites

- sudo /usr/local/squid/sbin/squid -z

note. this command will create cache and log directories in /usr/local/squid/var. make sure all directories created are owned by "nobody"

- sudo /usr/local/squid/sbin/squid -NCd1

note. -NCd1 is used for debugging


Apache server

/etc/apache2/sites-available/default

apache2ctl start