Updated config to work with both Apache 2.2 and 2.4.
Always use the pgdg apt repository since it supports all Ubuntu LTS releases on all supported versions of PostgreSQL.