LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-21-2001, 02:39 AM   #1
Ratclaws
Member
 
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 102

Rep: Reputation: 16
.htaccess and http.conf


having trouble w/ one of these 2 files.

i made a web page that comes up fine in my web browser. however i wanted to add some authentication.

the web site starts in /var/www/casey/ which is also the documentroot in my http.conf

i made a .htacces file in here that looks like
#############
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthType Basic
AuthName "sfkjaskfjaljf"
order deny, allow
deny all
allow 192.168.1
############

i was told that i should change my http.conf to look like this

##########
# somewhere shorttly after teh DocumentRoot part

AllowOverride all # instead of none

######

restarted httpd several times, tried different browsers (even lynx).. nothing happens.




also, i tried to do this with a slightly different .htaccess file, so that it looks for a passwd instead of a host. Again nothing happens, no popup auth box.


any suggestions?
 
Old 11-21-2001, 02:54 PM   #2
dewcansam
Member
 
Registered: Nov 2001
Location: Hi Hat KY USA
Distribution: RedHat, Mandrake
Posts: 63

Rep: Reputation: 15
----- begin .htaccess file -----
AuthUserFile [/path/to/.htpasswd]
AuthName "[Title of Window]"
AuthType Basic
require valid-user
----- end .htaccess file -----

then issue the command
$htpasswd [-c] /path/to/.htpasswd username
use the -c option if the file has not been created yet.

Try that and gimme a hollar as to happnd

Last edited by dewcansam; 11-21-2001 at 02:56 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with httpd.conf about htaccess newlinuxnewbie Linux - General 1 11-08-2005 08:45 PM
http.conf or router conf ? regnier Mandriva 1 02-25-2005 08:41 AM
HTTP.CONF questions alejandroye Linux - Software 3 11-04-2004 01:36 PM
Apache 2.0 http.conf - AddDefaultCharset nordickiwi Linux - Networking 0 10-04-2004 03:58 AM
Editing http.conf outside root GinkoOMO Mandriva 2 01-12-2004 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:00 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