AgilityIS
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/communi ty/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_l og
</VirtualHost>
I looked in /var/www/mywebsite/communi ty/media and I see a .htaccess file. Here it is:
Options -Indexes
<FilesMatch "^.*\.php|.*\.html|.*\.pl$ ">
ForceType application/x-httpd-php-so urce
</FilesMatch>
What is wrong here?
Thanks in advance for your help,
/var/www/mywebsite/communi
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_l
</VirtualHost>
I looked in /var/www/mywebsite/communi
Options -Indexes
<FilesMatch "^.*\.php|.*\.html|.*\.pl$
ForceType application/x-httpd-php-so
</FilesMatch>
What is wrong here?
Thanks in advance for your help,
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
<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.