Yes, IIS7 has an Application Request Routing extension. But since my public facing server is Windows 2003 Server, IIS7 was out.
Then I read Karl Seguin’s post on using NGINX to improve ASP.NET Performance. So I said to myself, let’s get dirty on this 🙂
My first step was to download VMWare Player. Why VMWare Player? Mainly because it’s free. You just need to register, activate VMWare account, then grab the installer.
Next step is to download Ubuntu Server VMWare image. Visit http://www.thoughtpolice.co.uk/vmware/ and grab a copy.
By now I believe you already run the Ubuntu server in VMWare Player.
- Login as ‘notroot’. Password: ‘thoughtpolice’
- Download Nginx source code. Command: wget http://nginx.org/download/nginx-1.0.4.tar.gz
- Follow the following commands to extract the archive:
- gunzip nginx-1.0.4.tar.gz
- tar -xf nginx-1.0.4.tar
- Follow the following commands to install the required runtime libraries:
- sudo -s
- apt-get update
- apt-get install gcc
- apt-get install libpcre3 libpcre3-dev
- apt-get install zlib1g-dev
- Follow the following commands to build nginx:
- cd nginx-1.0.4
- sudo make install
By now you should have NGINX installed to /usr/local/nginx. You could now edit the configuration in /usr/local/nginx/conf/nginx.conf. If you’re not sure how, NGINX’s documentation have section with many examples on how to configure NGINX. Editing the .conf is done using vi, so iIf you’re unfamiliar with vi, you could read a simple intro here.
a WordPress rating system