I found a solution for this issue. I am not sure if this will make a website vulnerable or not though.
I changed /etc/apache2/apache2.conf. I changed "AllowOverride" under /var/www to "All", restarted apache2 and now I can access the listings with friendly url enabled.