Solved

Apache User Authentication Problem.

Posted on 1999-01-19
2
235 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
Comment Utility
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
Comment Utility
Thanx
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
php survey script 4 57
Reading variable length EBCDIC in SAS 9 74
Batch FIle delete files with particular date 10 54
Disk Ram Peak 1 13
Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 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