• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 5444
  • Last Modified:

apache warning "/.htaccess indexes options not allowed here"

I am hosting a site.  I can access the site externally.  In my apache2 error_log file I get:

/var/www/mywebsite/community/media/.htaccess: Option Indexes not allowed here, referer: http://mywebsite/community

mywebsite is just a placeholder.

my httpd.conf:

NameVirtualHost *:80
<VirtualHost *:80>
ServerName mywebsite.com
ServerAlias mywebsite.com *.mywebsite.com
DocumentRoot /var/www/mywebsite
ErrorLog /var/www/mywebsite/error_log

I looked in /var/www/mywebsite/community/media and I see a .htaccess file.  Here it is:  

Options -Indexes
<FilesMatch "^.*\.php|.*\.html|.*\.pl$">
ForceType application/x-httpd-php-source

What is wrong here?
Thanks in advance for your help,
1 Solution
AgilityISAuthor Commented:
i got it

<Directory /var/www/mywebsite/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all

Thanks, it just took a little more reading in the good ole apache book.
Because you have presented a solution to your own problem which may be helpful to future searches, this question is now PAQed and your points have been refunded.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now