Solved: Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden

Apache configuration issue

If you you see something similar to below on your configured vhosts config, it might be a issue with your Welcome.conf

RewriteRule directive is forbidden

Please follow below steps to correct this:

Step 1: Open welcome.conf

 nano /etc/httpd/conf.d/welcome.conf

Step 2: change it to below:

<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html

Step 3: Restart apache

sudo /etc/init.d/httpd restart

You should be good to go.

I know there might be other errors that might lead to same error. It will be great if you guys can help me discover them.

Thanks 🙂