How to make htaccess work in Virtual host with ISPConfig

In an installation with ISPConfig with virtual hosts sharing the same IP. In order to test the mod_rewrite and .htaccess functionality is working or not, you need to allow the following in your /etc/apache2/vhosts/Vhosts_ispconfig.conf file in the virtual host section you want it to work: Note that the following is the /etc/apache2/vhosts/Vhosts_ispconfig.conf file and I have added the section starting from ServerName www.sharmafamily.com:80 ServerAdmin webmaster@sharmafamily.com DocumentRoot /srv/www/web7/web ServerAlias sharmafamily.com DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.h$ ErrorLog /srv/www/web7/log/error.log AddType application/x-httpd-php .php .php3 .php4 .php5 SetOutputFilter PHP SetInputFilter PHP SetOutputFilter PHP SetInputFilter PHP SetOutputFilter PHP SetInputFilter PHP SetOutputFilter PHP SetInputFilter PHP Options +Includes -Indexes FollowSymLinks AllowOverride All AllowOverride Indexes AuthConfig Limit FileInfo Order allow,deny Allow from all Deny from all