Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-03-2003, 01:25 AM   #1
Registered: Feb 2003
Posts: 482

Rep: Reputation: 33
apache .htaccess

has anyone played with the .htaccess files before?

this is what i have tried so far.

AuthType Basic
AuthName "Invite Only"
AuthUserFile /home/emetib/passwd
Require valid-user

this is one dir up from my pub_html, as to the documentation of apache 2.0

i have done the htpasswd -c /home/emetib/passwd username passwd, and i get the pretty little prompt asking me to put my username and passwd in, but i can not get access.

i have put it into the /etc/httpd/conf/httpd.conf file under the virtual host section and even under the "# Each directory to which Apache has access...." section, with no results except 'Authentification Failed'.

i have changed the AllowOverride to AllowAuth, like documentation says, still nothing except "piss off".

i'm really starting to pull my hair out, and i don't have much of it to begin with. please help.

apache 2.0, red hat 9.0(i believe, not my server ), sorry if the mods think that this should be in networking. i thought that since it was more of a software problem it should go here.

thanks and cheers.

p.s. and yes i have restarted the httpd everytime that i have changed the configs. both, the httpd.conf and the .htaccess file.
Old 08-03-2003, 03:27 PM   #2
Registered: Feb 2003
Posts: 482

Original Poster
Rep: Reputation: 33
ok, i figured it out.

when your making your htpasswd file, make sure that you chmod 755 it, then apache can access it. one thing that i would do also is to hide your files. then if someone does have the ability to get into your home, they won't be able to see them.

Old 09-10-2003, 04:47 AM   #3
Registered: Nov 2002
Location: London UK
Distribution: RedHat 9
Posts: 58

Rep: Reputation: 15
Give this man a bleedin medal or something - this has been driving me up the wall since the release of RH9 - Well done!
Old 09-10-2003, 10:18 AM   #4
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Originally posted by bleah-man
Give this man a bleedin medal or something - this has been driving me up the wall since the release of RH9 - Well done!
This is asked all the time, a quick search would have either found your answer or links to great documentation covering htaccess files..
Old 09-22-2003, 07:50 AM   #5
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Rep: Reputation: 30
Excellent .... thankyou!!!

This has been driving me crazy all day!

Now my authentication is working!! Yay!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Apache and .htaccess spud Programming 1 03-17-2005 12:52 PM
Apache/2.0.51 .htaccess 2782d4 Linux - Software 2 02-08-2005 01:12 PM
apache .htaccess linuxanswer Linux - General 1 05-01-2004 05:20 PM
is htaccess on apache 2.0 not the same as in 1.3 abd_bela Linux - General 3 07-23-2003 06:17 AM
.htaccess in apache 2 im1crazyassmofo Linux - Software 1 04-04-2003 02:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration