LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-16-2001, 04:02 AM   #1
bretthoward
Member
 
Registered: Mar 2001
Location: Klamath Falls
Posts: 62

Rep: Reputation: 15
Angry


For some reason I can't get .htaccess to work anymore after upgrading apache. Im running 1.3.17 and it still has the section that tells it to use the .htaccess files in the httpd.conf file. The contents of my .htaccess file is as shown below:

AuthUserFile /home/httpd/cgi-bin/x10/.htpasswd
AuthGroupFile /dev/null
AuthName X10 Password Authentication
AuthType Basic
require valid-user

and I have added a user into my .htpasswd file but when I load the page in this folder it loads with out any password prompts like I used to get before upgrading. Any Ideas?
 
Old 03-23-2001, 09:48 AM   #2
nedo
Member
 
Registered: Mar 2001
Location: Northern Poland
Posts: 34

Rep: Reputation: 15
i guess all you need to place in a .htaccess file is
require valid-user
anything else goes to httpd.conf ( did you enable Auth in httpd conf?)
 
Old 03-23-2001, 04:27 PM   #3
bretthoward
Member
 
Registered: Mar 2001
Location: Klamath Falls
Posts: 62

Original Poster
Rep: Reputation: 15
No I don't beleve that I did if it wasn't a default configuration... What does the tag that needs to be set look like cause I don't particularily remember an auth setting... But it is a pretty big file!
 
Old 03-24-2001, 03:03 AM   #4
nedo
Member
 
Registered: Mar 2001
Location: Northern Poland
Posts: 34

Rep: Reputation: 15
In 1.3.12 you needed to place line like this in httpd.conf

<Directory />
Options FollowSymLinks
AllowOverride AuthConfig
</Directory>

This sets default mode for all the directories.
AuthConfig is required for .htaccess to work

next you might want to create a similar tag for any directory you want to share using your apache and add more AllowOverrides like ExecCGI
I guess Apache manual tells you everything.
What's the big difference between 1.3.17 and 1.3.12 ?
 
Old 03-24-2001, 04:21 AM   #5
bretthoward
Member
 
Registered: Mar 2001
Location: Klamath Falls
Posts: 62

Original Poster
Rep: Reputation: 15
They said mainly it was just bug fixes... the folder I am doing this to is under cgi-bin so I may have to change that in a few places but I hope I'll figure it out
 
Old 04-02-2001, 03:33 PM   #6
rebby
LQ Newbie
 
Registered: Apr 2001
Location: Hugo, MN
Distribution: Slackware, RedHat
Posts: 24

Rep: Reputation: 15
Did you get this to work???

This may help some....

http://linux.rebby.com/apache/secure.html
 
  


Reply


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
.htaccess Help GUIPenguin Linux - Security 6 02-22-2005 02:25 PM
.htaccess luca2005 Linux - Software 2 01-01-2005 07:38 PM
.htaccess kidestranged Linux - General 1 01-26-2004 10:18 AM
Htaccess DoobyWho Linux - General 4 04-28-2003 01:01 PM
.htaccess raek Linux - Newbie 1 08-17-2002 11:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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

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