Solved

Apache User Authentication Problem.

Posted on 1999-01-19
2
238 Views
Last Modified: 2013-12-25
Hi.....
I have apache_1.3.0 running on Sparc-2 Solaris 2.5.
When I acces the cgi "g1.cgi" I get an error. Can anyone spot what is going on here.
The script runs ok on another sparc, so its not a problem with the script, but with user authentication.

also I added the users passwd with......
/apache_1.3.0/bin/htpasswd -c /etc/somedir/.htpasswd craiga

##access_log
194.70.47.186 - craiga [19/Jan/1999:14:10:10 +0000] "GET /cgi-bin/errors/g1.cgi HTTP/1.0" 500 443

##error_log
[Tue Jan 19 13:44:44 1999] [crit] configuration error:  couldn't check user.  No user file?: /cgi-bin/errors/g1.cgi


##access.conf##################################################
<Directory />
Options None
AllowOverride None
</Directory>
<Directory /apache_1.3.0/cgi-bin/errors>
AuthName Authentication
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
</Directory>
<Directory /apache_1.3.0/htdocs>
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
</Directory>
<Directory /apache_1.3.0/cgi-bin>
AllowOverride None
Options ExecCGI
</Directory>
##httpd.conf##################################################
ServerType standalone
Port 80
HostnameLookups off
User wwwuser
Group wwwusers
ServerAdmin rickyr@sparc-2
ServerRoot /apache_1.3.0
ErrorLog /apache_1.3.0/var/log/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /apache_1.3.0/var/log/access_log common
PidFile /apache_1.3.0/var/run/httpd.pid
ScoreBoardFile /apache_1.3.0/var/run/httpd.scoreboard
ServerName sparc-2
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 30
##srm.conf##################################################
DocumentRoot /apache_1.3.0/htdocs
UserDir public_html
DirectoryIndex index.html
FancyIndexing on
##Stuff about icons and languages here........
ScriptAlias /cgi-bin/ /apache_1.3.0/cgi-bin/
AddHandler cgi-script .cgi
### BrowserMatch stuff here

regards
0
Comment
Question by:rickyr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
gormenghast earned 70 total points
ID: 1832351
Hi
You seem to be missing the "AuthUserFile" directive in your access.conf file.

AuthUserFile <filename>
ie AuthUserFile /WW/Admin/.htpasswd

Regards
0
 
LVL 3

Author Comment

by:rickyr
ID: 1832352
Thanx
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn how to count occurrences of each item in an array.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question