LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-03-2003, 12:25 AM   #1
emetib
Member
 
Registered: Feb 2003
Posts: 484

Rep: Reputation: 33
apache .htaccess


has anyone played with the .htaccess files before?

this is what i have tried so far.

.htaccess=
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, 02:27 PM   #2
emetib
Member
 
Registered: Feb 2003
Posts: 484

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.

cheers.
 
Old 09-10-2003, 03:47 AM   #3
bleah-man
Member
 
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, 09:18 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
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, 06:50 AM   #5
lucastic
Member
 
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!
 
  


Reply



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 11:52 AM
Apache/2.0.51 .htaccess 2782d4 Linux - Software 2 02-08-2005 12:12 PM
apache .htaccess linuxanswer Linux - General 1 05-01-2004 04:20 PM
is htaccess on apache 2.0 not the same as in 1.3 abd_bela Linux - General 3 07-23-2003 05:17 AM
.htaccess in apache 2 im1crazyassmofo Linux - Software 1 04-04-2003 01:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:44 PM.

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