Sponsors

Installing typo on a linux box

Posted by Darshan Patil Thu, 07 Sep 2006 05:25:00 GMT

Install the gem and all its dependencies
sudo gem install typo -y
Create a directory where typo lives
cd ~/
typo install blog

After a while this should complete and typo should run on some port on your machine. It runs on port 4280 on my linux box. Make sure typo is running ok.

Now the fun part. Setting up Apache2 as the proxy to forward requests to your blog.

Add the following lines to httpd.conf (on fedora core its at /etc/httpd/conf/httpd.conf)

<VirtualHost *>
    ServerName blog.yourdomain.com:80
    ProxyRequests Off
    <Proxy *>
          Order deny,allow
          Allow from all
    </Proxy>
    ProxyPreserveHost On
    RewriteEngine On
    RewriteRule ^/(.*) http://localhost:4280/$1 [P,L]
    ProxyPassReverse / http://localhost:4280/
</VirtualHost>

The <VirtualHost *> directive tells Apache to listen on all interfaces for traffic. If it gets traffic for blog.yourdomain.com, it forwards requests to localhost:4280