Re: htaccess file trouble

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/1/2012 6:30 PM, Marc Fromm wrote:
> It looks like mod_info is installed (/usr/lib/httpd/modules/mod_info.so)
> How can I use it to see why the .htaccess file is being ignored?

Firstly, be sure that the module is actually enabled.

As far as specific directives are concerned, here's how I do it; I add
these directives to my primary Apache configuration file:

<IfModule mod_info.c>
<Location /server-info>
Order allow,deny
Allow from all
SetHandler server-info
SSLOptions +StrictRequire
SSLRequireSSL
SSLRequire %{HTTP_HOST} eq "example.com"
AuthType Basic
AuthName "Authorization Required"
AuthBasicProvider dbm
AuthDBMType DB
AuthDBMUserFile "/var/www/apache-users"
AuthDBMGroupFile "/var/www/apache-users"
require group programmers
</Location>
</IfModule>

Tailor to suit your specific requirements.

If you're using Apache 2.4, you will need to change the first two lines
inside the <Location> block, as 2.4 uses a different syntax.

Good luck!

-Ben

> -----Original Message-----
> From: Ben Johnson [mailto:ben@xxxxxxxxxxxxxxxx] 
> Sent: Thursday, November 01, 2012 1:44 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re:  htaccess file trouble
> 
> 
> 
> On 11/1/2012 4:31 PM, Marc Fromm wrote:
>> I have some .htaccess files in directories in /var/www/html which work 
>> great.
>>
>> I create an .htaccess file in /var/www/secure/html/phpPgAdmin/ but it 
>> is being ignored.
>>
>>  
>>
>> I checked all the common mistakes like misspelled, syntax, and 
>> AllowOverride is set to All.
> 
> In which configuration file is AllowOverride set to All?
> 
> We could guess at this all day, but the most prudent course of action is probably to install mod_info, which should make tracking-down the root-cause trivial.
> 
>> I am using: httpd-2.2.6-1.fc6 (I know it's old)
>>
>>  
>>
>> Any ideas on why the .htaccess file seems to be ignored in the secure area?
>>
>>  
>>
>> Thanks
>>
>>  
>>
>>  
>>
>> Marc
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux