Apache version detection and static improvements.