UbuntuのSquidで--enable-sslが効いていない件のメモ

SquidSSLでもリバースプロキシとして動かそうと思ったけど
/etc/squid/squid.confにhttps_portのタグを書いてもエラーが起こっていたのでメモ

http://ubuntu-ky.ubuntuforums.org/showthread.php?t=68246#2にそれっぽいのがあったので
その通りにやってみたがopensslのヘッダがないってエラーが出たのでlibssl-devを追加したらうまく動いたので、次の手順で大丈夫なはず。

apt-get source squid
sudo apt-get build-dep squid
sudo apt-get install devscripts build-essential fakeroot libssl-dev
cd squid-xxxx
emacs debian/rules
"Configure the package” sectionに下記を追加
--enable-ssl \ 
./configure
debuild -us -uc -b
cd ..
sudo dpkg -i squidxxxx squid-commonxxxx


以下squid.conf

refresh_pattern . 2 100% 2 ignore-reload

cache_mem 4 MB

negative_ttl 0

icp_port 0

http_port 80 accel vhost

https_port 443 accel vhost cert=/etc/squid/ssl/newcert.pem key=/etc/squid/ssl/private.key

cache_peer localhost parent 8080 0 no-query originserver

acl all src 0.0.0.0/0.0.0.0

http_access allow all

visible_hostname localhost

access_log /var/log/squid/access.log