title: Apache Options -Indexes configuration not working
body: <p>I need to stop directory listing of images directory on a website. I'm configuring cookieless domain for images and javascripts on a site. I have done the CNAME configuration and added below virtual hosts configuration in httpd.conf file. But, if i access this cookieless domain directly, its listing the whole directory content. how to solve this problem? </p>
  
  <pre>
  &lt;VirtualHost ipaddr:80&gt;
      ServerAdmin webmaster@site.com
      ServerName imgs.site.com
      ServerAlias www.imgs.site.com
      DocumentRoot /usr/tomcat/webapps/site/images
  
      &lt;Directory /usr/tomcat/webapps/site/images&gt;
         Options -Indexes FollowSymLinks
         AllowOverride none
      &lt;/Directory&gt;
  
      CustomLog logs/imgs.site.com_access_log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
      ErrorLog logs/imgs.site.com_error_log 
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost ipaddr:80&gt;
      ServerAdmin webmaster@site.com
      ServerName imgs.site.com
      ServerAlias www.imgs.site.com imgs.site.net
      DocumentRoot /usr/tomcat/webapps/site/images
  
      &lt;Directory /usr/tomcat/webapps/site/images&gt;
         Options -Indexes FollowSymLinks
         AllowOverride none
      &lt;/Directory&gt;
  
      CustomLog logs/imgs.site.com_access_log "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
      ErrorLog logs/imgs.site.com_error_log
  &lt;/VirtualHost&gt;
  </pre>