Old 4th June 2006, 10:18
galmiche galmiche is offline
Junior Member
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy .htaccess never executed

Dear All,

I'm under Suse X64 and I try to enable the .htaccess file
In my /etc/apache2/http.conf I have:

# grant /srv/www access using .ht files
<Directory /srv/www>
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Order allow,deny
Deny from all

my main directory for the web server is /srv/www

so under the sub dir "test" I added the file /srv/www/test/.htaccess

AuthUserFile /srv/www/test/.htpasswd
AuthName "Acces Restreint"
AuthType Basic
<limit GET POST>
order deny,allow
deny from .ipt.aol.com
require valid-user

But when I browse the repertory "test" no pop-up window appears asking me for a password, I see clearly the index.htm file as if no .htaccess file was existing.
What parameters have to be actvated so apache2 takes .htaccess files into account?

Many thanks for help,
Reply With Quote
Sponsored Links
Old 4th June 2006, 12:40
till till is online now
Super Moderator
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,986
Thanks: 840
Thanked 5,647 Times in 4,457 Posts

Have you restarted apache after changing the httpd.conf?
Till Brehm
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Old 4th June 2006, 22:44
galmiche galmiche is offline
Junior Member
Join Date: Jun 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default RE: .htaccess never executed

Hey boy'z,

I found the bug...
As I am using a virtual server system, and even as I wrote in the main httpd.conf file:
<Directory /srv/www>
Options None
AllowOverride AuthConfig

thus I have had in the directives inside my virtual .conf menu another line
<Directory /srv/www/my_server>
Options None
AllowOverride None

Then this one, specially for the sub-dir my_server, overlapped the previous AllowOverride value !

So, to all of you, thanks for help and double check overlapping values


Now..I have to write correctly my .htpasswd file...a good job to do !

Last edited by galmiche; 4th June 2006 at 23:21.
Reply With Quote


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess stopped working tgansert Installation/Configuration 2 1st June 2006 17:48
.htaccess question Ovidiu Installation/Configuration 3 14th March 2006 00:30
.htaccess and php_flag register_globals on edge Installation/Configuration 6 9th March 2006 21:05
.htaccess mtamaos Server Operation 1 28th November 2005 12:04
.htaccess PHP - Hobe it make sence. Joe-Montana Server Operation 3 5th November 2005 02:36

All times are GMT +2. The time now is 09:32.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.