LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-12-2021, 11:24 AM   #1
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 159

Rep: Reputation: Disabled
Question 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.
 
Old 01-12-2021, 02:19 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by cesarsj View Post
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
 
Old 01-12-2021, 04:58 PM   #3
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 159

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
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.
 
Old 01-12-2021, 06:16 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,732

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
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
 
1 members found this post helpful.
  


Reply

Tags
apache, httpd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] are the apache files /var/www/ and htdocs the same thing doughyi8u Linux - Server 2 09-29-2013 04:48 PM
Using authconfig to fully integrate with Active Directory Predatorian Linux - Security 3 05-21-2013 09:48 PM
[SOLVED] Apache: rewritten links return 404 error, AllowOverride makes things even worse craseal Linux - Server 2 08-28-2010 04:05 PM
Programatically change AllowOverride for <Directory /var/www/> BassKozz Linux - Server 1 12-20-2009 06:00 PM
Apache - AllowOverride ALL but .htaccess isn't allowing natv Linux - Server 4 02-19-2007 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration