These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for [RESOLVED]RewriteRule directive is forbidden on the new forum.
Hi,
My apache logs have this error for all the domain which uses .htaccess file.
Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden:
I added Options FollowSymLinks to .htaccess file but the error remains. I also tried with Options +FollowSymLinks but to no success.
Most of the websites were running using .htaccess files from a long time, its now that this error starts appearing in my virtual domain log file.
I believe there is something to be done on httpd.conf file but dunno which part needs editing. By the way I'm using Virtualmin Pro.
Regards Kk
One possible reason might be that the .htaccess is not allowed to modify the status of "FollowSymLinks". You might want to check the Apache config of the domain in question for the "AllowOverride" directive.
The above are the directives of the the domain in questions.
The issue is resolved now.
In /etc/httpd/conf.d/welcome.conf file there was missing "-" before Indexes. Adding "-" to Indexes making it -Indexes resolved the issue.
Thanks for your help.
Regards Kk
Your tip helped me figure out why the Welcome Screen was coming up for all of the websites on my server when I didn't have anything after the domain name. I was struggling with why I had to add index.html or index.php to get to my websites. I now have a dash in front of Indexes in my welcome.conf as appears below and it has fixed the problem:
root@answer conf.d# more welcome.conf
#
# This configuration file enables the default "Welcome"
# page if there is no default index page present for
# the root URL. To disable the Welcome page, comment
# out all the lines below.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>