pitchford
11-01-2001, 07:22 PM
Just got my RaQ about 3 weeks ago and can't get my .htaccess files to work!! I tried requiring a login/password usting .htaccess and .htpasswd and it fails...
What should I look for in my apache configs?
skylab
11-01-2001, 07:38 PM
i'm not *quite* sure, someone might correct me on this, but check this page out, :
http://cobalt-aid.sourceforge.net/files/
other than it containing a bunch of cool pkg's for you to install, scroll to the bottom, and check out the htaccess pkg. i installed that and had no problems afterwards...
hope it helps, sorry if it doesn't.
I think, you have the same Probl i had.
My solution of a right htaccess - file was:
********************************
order allow,deny
allow from all
require valid-user
Authname Webmaster
AuthPAM_Enabled off
Authtype Basic
AuthUserFile /home/sites/site$/web/directory/.htpasswd
********************************
The main thing you seem to be missing is:
AuthPAM_Enabled off
bec this wasn't installed on a RaQ3/RedHat Linux
pitchford
11-07-2001, 10:34 AM
This doesn't work! I know .htaccess is working since it prompts me for passwords on my siteadmin!
I've tried both things you've suggested and nothing works! When I install the pkg I receive error: ss.conf already modified. (where is this file?)
The AuthPAM_enabled OFF didn't work either. Any more suggestions? I rather need this to work. I can go in to the httpd.conf file and do what I need to, but if all my clients requested that I'd have to hire someone to modify the httpd.conf file for customers only!
I've gotten most other things to work the way I need them to, but .htaccess still has problems!
Thanks for any and all help!
[EDIT - Part of my "access.conf" file]
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
AllowOverride None
# ignore .ht*
<Files ".ht*">
deny from all
</Files>
# Controls who can get stuff from this server.
order allow,deny
allow from all
AuthFailDelay 2000000
# Frontpage subwebs use a nice mix of pam and Basic authentication
AuthPAM_FallThrough on
</Directory>
# be more restrictive within a site
<Directory /home/sites/*/>
Options -FollowSymLinks +SymLinksIfOwnerMatch
</Directory>
# @@ServerRoot@@/cgi-bin should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
Chicken
11-07-2001, 10:45 AM
Originally posted by pitchford
This doesn't work! I know .htaccess is working since it prompts me for passwords on my siteadmin!
Just wanted to mention that just because you get a prompt when you try to access siteadmin, doesn't mean that htaccess is properly configured for the rest of the server.
Just try a simple test .htaccess file in this site...
1. Create a simple HTML file (just so it displays this is 404) named 404.html and place this file in your /web directory.
2. Create .htaccess file in notepad with only:
ErrorDocument 404 http://www.domain.com/404.html
3. Upload in ascii mode to /web directory.
4. Type in http://www.domain.com/jlhsdfh.html and see if you get the 404 page you created.
Did you get the page?
Chicken
11-07-2001, 11:01 AM
Originally posted by pitchford
[EDIT - Part of my "access.conf" file]
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
AllowOverride None
# ignore .ht*
<Files ".ht*">
deny from all
</Files>
You snuck in an edit there and this is your problem. Change to:
AllowOverride All
/etc/rc.d/init.d/httpd restart
You can ignore the post above, as I already know it won't work...
webbcite
11-07-2001, 12:08 PM
Have you installed mod_gzip? If so, there are authentication problems with Cobalts and mod_gzip. Just a thought...
pitchford
11-07-2001, 02:45 PM
AH! Chicken is GOD!
Thank you... :D
I kept looking at that variable, but figured it was okay because .htaccess was working on siteadmin.
What I meant by it is working because I get prompted; was that I know somewhere it is configured to function with apache.
I know that the siteadmin is on another apache install, but where can I find the httpd.conf file for the siteadmin? (for future refference)
THANKS AGAIN!
TOMMY