authentication breaks some .cgi scripts

Posted on 2005-05-13
Last Modified: 2010-03-04

I've reviewed applying both Digest and Basic authenticatin for my home page and both work fine, however, some Perl based CGI's don't work with authentication of any type, once activated. but are fine once I uncomment the offending lines in the .conf

All other static pages work fine with authentication.

Do you know why this may be?

in the httpd.conf file, I tried.

# for digest
 <Directory "C:/Apache2/htdocs">
 AuthType Digest
 AuthName "MyRealm"
 AuthDigestFile "C:/Apache2/passwd/cypher.txt"
 require user admin

 - and -

# for basic
 <Directory "C:/Apache2/htdocs">
 AuthType Basic
 AuthName "MySite"
 AuthDigestFile "C:/Apache2/passwd/basic.txt"
 require user admin

Question by:Marketing_Insists

    Author Comment

    Oh, and it's windoz
    LVL 2

    Accepted Solution

    your password files don't look good with that .txt
    did you use 'htdigest' when you were making these password files of yours?
    i think you should take a look here first
    and also show us a cgi script of yours that doesn't work.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 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

    14 Experts available now in Live!

    Get 1:1 Help Now