LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache in Slackware 14.2: why 'AllowOverride AuthConfig Options' within <Directory "/var/www/htdocs">? (https://www.linuxquestions.org/questions/linux-software-2/apache-in-slackware-14-2-why-allowoverride-authconfig-options-within-directory-var-www-htdocs-4175688421/)

cesarsj 01-12-2021 11:24 AM

Apache in Slackware 14.2: why 'AllowOverride AuthConfig Options' within <Directory "/var/www/htdocs">?
 
In .htaccess it should have 'Options + SymLinksIfOwnerMatch', but it only works if I leave 'AllowOverride All' within <Directory "/var/www/htdocs"> in /etc/httpd/httpd.conf.

I also tried AllowOverrideList but it says that AuthConfig is not valid.

bathory 01-12-2021 02:19 PM

Quote:

Originally Posted by cesarsj (Post 6206910)
In .htaccess it should have 'Options + SymLinksIfOwnerMatch', but it only works if I leave 'AllowOverride All' within <Directory "/var/www/htdocs"> in /etc/httpd/httpd.conf.

I also tried AllowOverrideList but it says that AuthConfig is not valid.

If you want to use only the "Options + SymLinksIfOwnerMatch" directive inside a .htaccess, then it's enough the following:
Code:

AllowOverride Options

cesarsj 01-12-2021 04:58 PM

Quote:

Originally Posted by bathory (Post 6207004)
If you want to use only the "Options + SymLinksIfOwnerMatch" directive inside a .htaccess, then it's enough the following:
Code:

AllowOverride Options

I also need AuthConfig because some folders have a different authentication provider.

scasey 01-12-2021 06:16 PM

The definitive documentation for AllowOverride:
https://httpd.apache.org/docs/2.4/mo...#allowoverride

But, if you have access to the httpd config files, you can (should , IMO) put the options you want for the Directory in there and avoid the use of .htacess files all together. See:
https://httpd.apache.org/docs/curren.../htaccess.html


All times are GMT -5. The time now is 08:52 PM.