Allow SSI include directive for all HTML pages in htdocs folder using MAMP

I use MAMP to develop sites. I have each site in it's own folder in the htdocs folder. I manage one site that I need to use ssi directives on, because the host doesn't allow php includes.

I've un-commented these lines in httpd.conf file:

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

I added a .htaccess file in the htdocs folder with the following:

AddType text/html .shtml
AddHandler server-parsed .html
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes

On the site index page the include works using:

<!--#include file="top-nav.shtml" -->

But it does not work on files in any sub folder. I get this error:

[an error occurred while processing this directive] 

apache – how to override index of /icons?

I wasn't aware of this, and it is kind of funny; when you name a directory icons in the root of your host, then if you point your browser to host.com/icons, apache does not read from that directory and shows you a listing of Public Domain Icons.

I added an icons directory to the root and placed a key.png file in that directory, yet accessing that image results in 404. I tried to find if/where this has been documented and how it could be turned off. I found nothing. Could someone provide a pointer?

P.S. I am using XAMPP 1.7.3 which basically is a WAMP and has Apache 2.2.14

Edit
Aparently lots of live servers have this turned on and index of /icons could be seen lots of places, including this one: http://www.mameworld.net/icons/.

Apache virutalhost subdomains point to same directory

elloo,

i have two virtualhost subdomains point to different directories however when i load both subdomains in the browser, i get them both pointing to same directory. here is my vhost.conf

<VirtualHost *:80>
        ServerAdmin [email protected]
        ServerName subdomain1.domain.com 
        ServerAlias *.domain.com

        #Indexes + Directory Root.
        DirectoryIndex index.php        
        DocumentRoot /subomain1/path/to/directory/trunk

        #Logfiles
        ErrorLog  /subomain1/path/to/directory/trunk/error.log
        CustomLog /subomain1/path/to/directory/trunk//access.log combined
</VirtualHost>

<VirtualHost *:443>
        ServerAdmin [email protected]
        ServerName subdomain1.domain.com 
        ServerAlias *.subdomain.com

        DirectoryIndex index.php        
        DocumentRoot /subomain1/path/to/directory/trunk

        SSLEngine On
        SSLCertificateFile /ssl/certs/subdomain1.crt
        SSLCertificateKeyFile /ssl/private/subdomain1.key
        SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
 </VirtualHost>

 <VirtualHost *:80>
        ServerAdmin [email protected]
        ServerName subdomain2.domain.com 
        ServerAlias *.domain.com

        #Indexes + Directory Root.
        DirectoryIndex index.php        
        DocumentRoot /subomain2/path/to/directory/trunk

        #Logfiles
        ErrorLog  /subomain2/path/to/directory/trunk/error.log
        CustomLog /subomain2/path/to/directory/trunk//access.log combined
</VirtualHost>

<VirtualHost *:443>
        ServerAdmin [email protected]
        ServerName subdomain2.domain.com 
        ServerAlias *.subdomain.com

        DirectoryIndex index.php        
        DocumentRoot /subomain2/path/to/directory/trunk

        SSLEngine On
        SSLCertificateFile /ssl/certs/subdomain2.crt
        SSLCertificateKeyFile /ssl/private/subdomain2.key
        SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
 </VirtualHost>

i have tried google however none of the answers seems to help.

i'm using ubuntu server

many thanks in advance