user
December 10, 2009, 12:40am
1
I didn’t change httpd.conf after installation of apache2, so it looks like .htaccess-files are enabled by default, because if I generate a .htaccess-file with garbage in it, I find an “invalid command” for the .htaccess-file in the error.log.
I found an info in the apache2-docs, that I can disable .htaccess-files globally, if I set “AllowOverride” to “None”, but in httpd.conf it’s already “None” by default.
Can anyone tell me why .htaccess-files still work and how to disable it?
TIA, Tommy
I didn’t change httpd.conf after installation of apache2, so it looks
like .htaccess-files are enabled by default, because if I generate a
htaccess-file with garbage in it, I find an “invalid command” for the
htaccess-file in the error.log.
I found an info in the apache2-docs, that I can disable .htaccess-files
globally, if I set “AllowOverride” to “None”, but in httpd.conf it’s
already “None” by default.
Can anyone tell me why .htaccess-files still work and how to disable
it?
TIA, Tommy
Hi
That’s because there is probably a configuration file
in /etc/apache2/conf.d directory which requires it.
–
Cheers Malcolm °¿° (Linux Counter #276890 )
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 5 days 4:10, 3 users, load average: 0.26, 0.15, 0.05
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18
user
December 10, 2009, 9:52am
3
Hi malcolmlevis,
I checked all *.conf-files in /etc/apache2/ and /etc/apache2/conf.d/ with
cat <filename.conf> | grep AllowOverride
, but didn’t find anything else then “AllowOverride None”.
In my /etc/apache2/conf.d/ directory is a nagios.conf and a php5.conf.
Any other hints?
Thanks, Tommy
Hi malcolmlevis,
I checked all *.conf-files in /etc/apache2/ and /etc/apache2/conf.d/
with
Code:
cat <filename.conf> | grep AllowOverride
, but didn’t find anything else then “AllowOverride None”.
In my /etc/apache2/conf.d/ directory is a nagios.conf and a php5.conf.
Any other hints?
Thanks, Tommy
Hi
Your looking for htpasswd and for nagios (albeit on SLES) it’s there;
AuthUserFile /etc/nagios/htpasswd.users
–
Cheers Malcolm °¿° (Linux Counter #276890 )
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 5 days 17:13, 4 users, load average: 0.32, 0.40, 0.20
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18