Link to home
Start Free TrialLog in
Avatar of AgilityIS
AgilityISFlag for United States of America

asked on

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
</VirtualHost>

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
</FilesMatch>


What is wrong here?
Thanks in advance for your help,
 
Avatar of AgilityIS
AgilityIS
Flag of United States of America image

ASKER

i got it

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

Thanks, it just took a little more reading in the good ole apache book.
ASKER CERTIFIED SOLUTION
Avatar of EE_AutoDeleter
EE_AutoDeleter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial