Web Hosting Talk







View Full Version : Help: .htaccess kills site


lovetree
09-12-2001, 06:01 PM
Greetings,

Everything was working fine, but for some reason sites or directories with .htaccess returns error(Page not found). I am puzzled, and needs help. Any help will be greatly appreciated.

David Park

Apache error Log:
================
[Wed Sep 12 07:29:43 2001] [alert] [client 24.31.63.146] /home/sites/home/users/stats/web/.htaccess: order not alllowed here
=================

.htaccess content
================
#Access file
order allow,deny
allow from all
require group home
Authname WebStats
Authtype Basic
================

access.conf:
===============
<Directory /home/sites/>

Options Indexes FollowSymLinks Includes MultiViews
AllowOverride AuthConfig
<Files ".ht*">
deny from all
</Files>
order allow,deny
allow from all
AuthFailDelay 2000000
AuthPAM_FallThrough on
</Directory>

================


__________________
=======================
David Y. Park
Lovetree Systems Inc.
=======================

jkcity
09-12-2001, 06:17 PM
It looks like they are set up to not be allowed.

lovetree
09-12-2001, 06:45 PM
Originally posted by jkcity
It looks like they are set up to not be allowed.

Please elaborate on which line is not configured, and help poor soul.


David

Haze
09-12-2001, 06:46 PM
You can find information on the second post of this thread on how to enable .ht*

http://www.webhostingtalk.com/showthread.php?threadid=20438

Hope this helps :)

lovetree
09-12-2001, 07:11 PM
I made changes as below to access.conf, and restarted apache. However, it is still not working.. Any advise.?


David

========================
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination ..ons", "FileInfo",
# "AuthConfig", and "Limit"

AllowOverride All

# ignore .ht*
<Files ".ht*">
deny from all
</Files>
=========================

Haze
09-12-2001, 07:38 PM
Hmm, did you change anything else?

Haze
09-12-2001, 07:42 PM
ok, make sure the quotes are around the Authname so it looks like

Authname "WebStats"

lovetree
09-12-2001, 07:45 PM
No. I even updated access.conf.master with "AllowOverride All " and replaced access.conf, but still same...

-David

lovetree
09-12-2001, 07:49 PM
Originally posted by Haze
ok, make sure the quotes are around the Authname so it looks like

Authname "WebStats"

Done that.. But same. I am puzzled.

-David

CmptrWz
09-12-2001, 08:22 PM
Did you restart apache?

lovetree
09-12-2001, 08:24 PM
Originally posted by CmptrWz
Did you restart apache?

Yes, I restarted -> stopped and started ..

-David

Haze
09-12-2001, 10:53 PM
Ok, what is it that you are trying to do exactly with the .htaccess file?

lovetree
09-12-2001, 11:44 PM
.htaccess was put in the directory by webalizer pkg for authentication, And it was working fine until this problem today.

I applied appache update pkg, but it was a week ago. Nothing has changed since...

-David

lovetree
09-13-2001, 01:31 AM
Problem Solved!

Thanks to everyone's help and lextra dose of caffeine in my blood, the problem was traced to mod_gzip.

Apparently, new apache upgrade pkg did not like extra directives I put in in httpd.conf for mod_gzip. I had to recompile mod_gzip and everything went back to normal. Although I am puzzled as to why it worked for a few days, I am going to bed now.

Thanks everyone!

-David