Start All Services
- open a browser window and go to http://mydomain.com/manage
- login as admin:mysecretpassphrase
- go to /portal_squid
- select the Proxy Urls tab and input the following in the corresponding sections:
Cache URLs
http://127.0.0.1:8902 https://127.0.0.1:8902
Purge URLs
Python:object.getUrlsToPurge(setup='squid_behind_apache')
Now go to http://mydomain.com/portal_cache_settings
Enable CacheFu
Default Cache Policy (v1.2)
Proxy Cache Purge Configuration
Purge with VHM URLs (squid/varnish behind apache, VHM virtual hosting)
Under Site Domains place the following
http://mydomain.com:80
http://www.mydomain.com:80
https://mydomain.com:443
https://www.mydomain.com:443
Under Proxy Cache Domains place the following
http://127.0.0.1:8902
https://127.0.0.1:8902
Now click on Save
Restart PF
# /etc/rc.d/pf restart
Before starting all services, you will need to make sure that /etc/hosts is properly configured:
Here is an example:
::1 localhost 127.0.0.1 localhost a.b.c.e internalhostname internalhostname.mydomain.com a.b.c.d mydomain.com www.mydomain.com
Now let's check all permissions and restart Apache, Squid, and Plone/Zope
# apachectl stop # kill -9 `cat /usr/local/plone/mydomain.com/var/squid.pid` \ && rm /usr/local/plone/mydomain.com/var/squid.pid # /usr/local/plone/mydomain.com/bin/client1 stop # /usr/local/plone/mydomain.com/bin/zeoserver stop # chown -R zadmin:www /usr/local/plone/mydomain* # chown -R www:www /usr/local/www/data # cd /usr/local/plone/mydomain.com # ./bin/zeoserver start # ./bin/client1 start # ./bin/squid-instance # apachectl start

Author: