How to properly Enable AllowOverride All for default dir of /usr/local/apache/htdocs/
I would like to have a .htaccess file in
/usr/local/apache/htdocs/
The reason I want to do this is that I have a client that has a contest going on with dozens of hidden locations on their server. If people go to https urls, they get sent to the 404 page for the default vhost.
So I want to turn on AllowOverride and redirect traffic back to the correct domain under the correct url.
For now I've edited httpd.conf directly, but I want the changes to stick. I've tried creating a main.local but apparently did not edit the correct location. For a rebuild and restart didn't produce the desired effect.
Where is the correct place to edit?
-
For now I've edited httpd.conf directly, but I want the changes to stick. I've tried creating a main.local but apparently did not edit the correct location. For a rebuild and restart didn't produce the desired effect.
Hello, Could you let us know the specific changes you are making? Thank you.0 -
Of course. I changed: Options All AllowOverride None Require all granted to: Options All AllowOverride All Require all granted How do I make that persistent? & is there any reason why that is a bad idea? 0 -
Have you tried directly editing /usr/local/apache/conf/httpd.conf and preserving the changes with the distiller? EX: /usr/local/cpanel/bin/apache_conf_distiller --update
Let us know if that helps. Thank you.0
Please sign in to leave a comment.
Comments
3 comments