Update 2014.02.10: Ubuntu 13.04 and newer users might want to check out the newer guide here.
To develop web applications we often need to set up subdomains under the localhost to accsess them locally like that:
http://project.localhost/
Here is a quick and pain-free way to do that: Continue reading
Local Subdomains under Ubuntu Linux and Apache 2.2 Tutorial
4