Solved

Apache User Authentication Problem.

Posted on 1999-01-19
2
236 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now