Solved

Apache User Authentication Problem.

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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

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