httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Barth \(John\) Jones" <musicbyba...@alltel.net>
Subject Re: [users@httpd] cgi
Date Tue, 08 Jun 2004 11:30:42 GMT
That's actually what I had.  I just typed it in wrong--  Sorry.

This thread can be closed.  It's working now.  Answers my latest thread will
be much appreciated.  Thanks.

----- Original Message ----- 
From: "Boyle Owen" <Owen.Boyle@swx.com>
To: <users@httpd.apache.org>
Sent: Tuesday, June 08, 2004 5:09 AM
Subject: RE: [users@httpd] cgi


> Plain text please...
>
> TO add to the other comments; Your hostname is wrong (unless you
> specially created such a hostname in the HOSTS file?):
>
> http://localuser/cgi-bin/testcgi.pl
>
> should be;
>
> http://localhost/cgi-bin/testcgi.pl
>
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored.
>
> -----Original Message-----
> From: Barth (John) Jones [mailto:musicbybarth@alltel.net]
> Sent: Samstag, 5. Juni 2004 00:15
> To: users@httpd.apache.org
> 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
> </Directory>
>
> I have a script called testcgi.pl in the cgi-bin.  When I go to my
> browser and type http://localuser/cgi-bin/testcgi.pl I get that stupid
> perfectnav search engine.  When I run it in Windows9x I get the
> following:
>
> C:\apache2triad\cgi-bin>perl testcgi.pl
> 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"
>          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"
> xml:lang="en-US"><head><
> title>Untitled Document</title>
> </head><body></body></html>
> C:\apache2triad\cgi-bin>
>
> Can somebody please explain where I'm going wrong?  I'm pretty sure the
> testcgi.pl code is ok but here it is just in case (it should throw back
> a blank page):
>
> #!/usr/local/bin/perl
>
>     use CGI ':standard';
>
>     print header();
>     print start_html();
>
>     for $i (param()) {
>         print "<b>", $i, "</b>: ", param($i), "<br>\n";
>     }
>
>     print end_html();
>
> Thanks
>
> 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:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message