httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From colin_e <>
Subject [users@httpd] Re: users Digest 8 Dec 2004 18:48:07 -0000 Issue 1810
Date Thu, 09 Dec 2004 12:01:59 GMT
	Sounds as if you may be using a file-type cgi configuration
on your development machine, instead of using ScriptAlias to define
a cgi directory.

Do you have something like the following in your devel httpd.conf
(either directly or included)-

<Files *.cgi>
  SetHandler cgi-script
  AllowOverride None
  Options ExecCGI

(this may be Apache 1 syntax, haven't got to this bit with Apache 2
 myself yet!). If so you will need the same in production. Note the
security caveats on mixing executables with publicly-visible HTML

Regards: Colin

Date: Wed, 8 Dec 2004 12:09:29 -0500
To: <>
From: "Warron French" <>
Subject: RE: [users@httpd] CGI scripts
Message-ID: <>

Why would I need to do that if I didn't make any adjustments on my =
development server.  The ScriptAlias is:

ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"  but my development site's cgi =
scripts are not anywhere near that directory.

Merry Christmas & Happy New Year!
Warron French
Sr. Network Engineer
Xtria, LLC

-----Original Message-----
From: Boyle Owen []
Sent: Wednesday, December 08, 2004 11:39 AM
Subject: RE: [users@httpd] CGI scripts

>> -----Original Message-----
>> From: Warron French []
>> Sent: Mittwoch, 8. Dezember 2004 17:35
>> To: Users Apache (E-mail)
>> Subject: [users@httpd] CGI scripts
>> Hello all,
>> I have 2 servers, let's just label them as ti-dev (for=20
>> development) and tinet (the production server).  Both are=20
>> Running Linux, however the production Server is running RH ES=20
>> Linux 3.0 and the development box is running RH 9.0.  Both=20
>> have the CGI RPM installed.
>> The production server called tinet is running by way of the=20
>> RPM perl-CGI-2.81-88.7.i386.rpm and the development server=20
>> (ti-dev) is running with perl-CGI-2.81-88.3.i386.rpm.
>> Tinet is running Apache-2.0.52, and ti-dev is running Apache-2.0.40.
>> My problem:
>> ON ti-dev the following occurs with CGI scripts:
>> at a unix shell:    the cgi/perl script produces the HTML coding.
>> in the web browser:  the cgi/perl script produces the HTML=20
>> page as we expect it to look like.
>> ON Tinet however, the following occurs with CGI scripts:
>> at a unix shell:    the cgi/perl script produces the HTML coding.
>> in the web browser:   the actual perl script code shows=20
>> within the browser.
>> Is there a feature or "statement" I forgot to make on the=20
>> Tinet server that would explain this difference?

Of course. You haven't told apache that requests leading to this
directory should cause the file to be executed rather than printed. See
"ScriptAlias", eg:

ScriptAlias /cgi /path/to/your/cgi/dir

And read:

Owen Boyle

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