SERVER_NAME can cause confusion with mass virtual hosting. Replaced by HTTP_HOST.