XF 1.2 Friendly URL's Not Working

I can't seem to get full friendly URL's working. When I attempt to visit any page other than the main homepage I'm greeted with a 404 error.

I've tried the following:
  • Ensured my .htaccess file is writable, renamed htaccess.txt to .htaccess.
  • Enabled the friendly URL's option in the admin panel.
  • Ensured that mod_rewrite is enabled.
  • Ensured that AllowOverride is set to ALL.
  • Restarted Apache.
  • Followed applicable instructions in http://xenforo.com/help/friendly-urls/.
Anything I'm missing?
I fixed it by adding the following to my default sites-available configuration in Apache:
<Directory /var/www/>
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
  Order allow,deny
  allow from all
Even though AllowOverride was set to all in the default Apache2 configuration apparently it needs to be set there as well.