httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <>
Subject RE: [users@httpd] cgi
Date Tue, 08 Jun 2004 09:09:00 GMT
Plain text please...

TO add to the other comments; Your hostname is wrong (unless you
specially created such a hostname in the HOSTS file?):


should be;


Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

-----Original Message-----
From: Barth (John) Jones []
Sent: Samstag, 5. Juni 2004 00:15
Subject: [users@httpd] cgi

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

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"
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();


This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message