I'm doing quick post today as I'm quite busy right now. But I don't want to make my friend Piju disappointed as he request me (quite so long... sorry heheh) about my changes on his previous squid.conf to cache youtube which is not working anymore since youtube make some changes on their video URL. Here is my new /etc/squid/squid.conf acl all src all acl manager proto cache_object acl localhost src 127.0.0.1/32 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network acl SSL_ports port 443 acl Safe_ports port 80 # http acl Safe_ports port 21 # ftp acl Safe_ports port 443 # https acl Safe_ports port 70 # gopher acl Safe_ports port 210 # wais acl Safe_ports port 1025-65535 # unregistered ports acl Safe_ports port 280 # http-mgmt acl Safe_ports port 488 #
Previously, I've talked about mod_python.publisher method of creating a simple website using Python . And this time, I will talk about mod_python.psp where PSP stands for Python Server Pages . What good about Python Server Pages for former PHP or JSP programmer is the way you can write your code where you can use the <% # your code here %> tag as you always do. But before that, you have to configure your server to enable mod_python.psp. Pre-requisite In order to run your site with PSP, you have to install and enable mod_python. Here is the steps if you are using Ubuntu: Install apache2 and libapache2-mod-python and enable mod-python $ sudo apt-get install apache2 $ sudo apt-get install libapache2-mod-python $ sudo a2enmod python Edit /etc/apache2/sites-enabled/000-default. Search for this lines: <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny all