On my desktop I use /etc/hosts file like as below for developing purpose
127.0.0.1 a.example.com
127.0.0.1 www.a.example.com
127.0.0.1 adsense.a.example.com
127.0.0.1 foto.a.example.com
They all work except www.a.example.com it doesn't forward to localhost. Could you explain why? and any workaround?
I use Ubuntu 10.10. Thanks