Fix Python 2.5 compatibility
Disable proxy before accessing local host in apache test
Do not rely on DNS to test local apache server