LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 12:24 PM   #1
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 125

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, 03:19 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,789

Rep: Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847Reputation: 1847
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, 05:58 PM   #3
cesarsj
Member
 
Registered: Mar 2019
Location: Patos de Minas, MG, Brazil
Distribution: Slackware
Posts: 125

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, 07:16 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 5,346

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:48 PM
Using authconfig to fully integrate with Active Directory Predatorian Linux - Security 3 05-21-2013 10:48 PM
[SOLVED] Apache: rewritten links return 404 error, AllowOverride makes things even worse craseal Linux - Server 2 08-28-2010 05:05 PM
Programatically change AllowOverride for <Directory /var/www/> BassKozz Linux - Server 1 12-20-2009 07:00 PM
Apache - AllowOverride ALL but .htaccess isn't allowing natv Linux - Server 4 02-19-2007 08:25 AM

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

All times are GMT -5. The time now is 05:03 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