Koozali.org formerly Contribs.org

.htaccess is ignored

Quade

.htaccess is ignored
« on: December 05, 2001, 05:56:33 PM »
I'm having trouble getting my server to pay attention to the .htacces files in certain directories. Both the .htaccess and the .htpasswd files are readable by the server, and the path to the password file is correct in the .htaccess file (I must have checked and recehecked all the settings a million times).

I've read other posts on this board, and tried all the suggestions and fixes, but this has no effect on my problem. I've searched the web and Apache docs, and verified that my files are indeed correct with the proper perms. I even copied the .ht* files to a server at work, modified the path, and they worked like a charm.

When I visit the page, even outside the network, I simply get the page -- no authentication whatsoever.

I need help, guys. I'm pulling my hair out. Is there something I have to turn on that I've overlooked? Is there something wierd with the path in .htaccess files in e-smith? Did I not appease the .htaccess gods?

I'm using 4.1.2 right now. Would upgrading to SME 5 make a difference? I haven't upgraded b/c before I started messing with .htaccess files, it wasn't broke, so I didn't fix it.

Ralph

Re: .htaccess is ignored
« Reply #1 on: December 06, 2001, 12:23:37 AM »
Hi Quade,

Try the Apache Logs as a start. When there is an error with htaccess or htpasswd the logs will tell you the directory that Apache is looking for. Can it be that you modified the config files directly and not the templates?... Hope this helps

Ralph

Quade

Re: .htaccess is ignored
« Reply #2 on: December 06, 2001, 12:58:14 AM »
Ah-HA!
OK, so I dug a little deeper in the phorum here, and found a post from Tony in Sweden at http://e-smith.org/bboard/read.php?v=t&f=1&i=8916&t=8840 which detailed exactly how to do this.

Without repeating everything he said, I needed to modify the httpd.conf templates, inject the changes into the httpd.conf file, and restart the server. Instead of:
"AllowOverride None"
I needed
"AllowOverride AuthConfig"

This did the trick. I guess I just needed to stress on it for awhile to make the .htaccess gods happy again.

Also, thanks to Ralph for the reply. You're right--I needed to make all my changes to the template files.

Dan Brown

Re: .htaccess is ignored
« Reply #3 on: December 06, 2001, 05:39:32 AM »
Take a look at http://www.familybrown.org/howtos/advanced-ibay-howto.html for one way to do this while being (I think) fairly e-smith-friendly.

Thor Anthrax

Re: .htaccess is ignored
« Reply #4 on: December 22, 2001, 01:41:14 AM »