My setup on the Drupal site has no errors showing, and the media seem to play ok, but I'm getting errors in my Apache logs. The one that keeps showing up a lot is:

Directory index forbidden by Options directive: /var/www/www.domainame.com/web/sites/all/modules/swftools/shared/swfobject2/

I went into my vhosts conf file and added:

<Directory /var/www/www.domainame.com/web/sites/all/modules/swftools/shared/swfobject2/>
     Options Indexes FollowSymLinks 
     AllowOverride None 
</Directory>

That seems to have done the trick, but I was wondering if this might show that I had something set up wrong in swftools?

Comments

theshanergy’s picture

I am experiencing this same problem. I've found it is caused by a setting on the 'embedding settings' page. When you have set 'Add JavaScript to all pages' the module adds an incorrect script tag to the document head: <script type="text/javascript" src="/sites/all/modules/swftools/shared/swfobject2">

When your browser attempts to load the directory, the corresponding line appears in the apache log. The conf fix above will only really remove the apache log entries, without getting to the root of the problem. You'll still have a broken script tag in your head.

I'm unable to track down the issue in code, but maybe someone else has an idea?

wxman’s picture

It's funny, but I had to switch servers this year. I haven't seen the error since I switched. I'm still on apache, but I'm now using Centos instead of Ubuntu.