Normally, this would indicate that when the server is connecting back to itself, it's either not working or when it does the connection, it's not matching the VHost, probably because the network device it's using isn't the same that the VHost is configured for. (For example, connecting on 127.0.0.1 but the VHost matches the external IP only.)