httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barth \(John\) Jones" <>
Subject [users@httpd] cgi
Date Fri, 04 Jun 2004 22:14:44 GMT
I'm trying to test a cgi script on my Apache2Triad server installed on a WindowsXPPro platform.
 My cgi-bin is in my server root, which is c:/apache2triad/, and I have my ScriptAlias set
to the following:

ScriptAlias /cgi-bin/ "C:/Apache2triad/cgi-bin/"

<Directory "C:/apache2triad/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all

I have a script called in the cgi-bin.  When I go to my browser and type http://localuser/cgi-bin/
I get that stupid perfectnav search engine.  When I run it in Windows9x I get the following:

Content-Type: text/html; charset=ISO-8859-1

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" lang="en-US" xml:lang="en-US"><head><
title>Untitled Document</title>

Can somebody please explain where I'm going wrong?  I'm pretty sure the code is
ok but here it is just in case (it should throw back a blank page):


    use CGI ':standard';

    print header();
    print start_html();

    for $i (param()) {
        print "<b>", $i, "</b>: ", param($i), "<br>\n";

    print end_html();

View raw message