You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Anderson Neo <sl...@msn.com> on 2003/12/17 03:09:22 UTC

Re: [users@httpd] Executing CGI Scripts that have no File Extension in Apache 1.

How about trying this.

Put a .htaccess in the directory where the CGI resides with the following 
line

SetHandler cgi-script

This will enable executing of cgi (FOR ALL FILES) in the directory.



>From: Jonas Eckerman <jo...@frukt.org>
>Reply-To: users@httpd.apache.org
>To: <us...@httpd.apache.org>
>Subject: Re: [users@httpd] Executing CGI Scripts that have no File 
>Extension in Apache 1.3
>Date: Tue, 16 Dec 2003 22:18:15 +0100
>
>On Tue, 16 Dec 2003 15:07:21 -0800, cebast@bellsouth.net wrote:
>
> >  I have exhausted myself trying to figure out how to get CGI
> >  scripts to execute under Apache 1.3 that do not have a file
> >  extension.
>
>What operating system?
>
>If you're running a Unix, Linux or similar, the file extension should be 
>quite unimportant, but make sure the CGI has execute permission for the web 
>server.
>
>What happens when you execute the CGI from the commandline?
>
> >  http://yourserver/cgi-bin/broker?
>
> >  ScriptAlias /cgi-bin/        "/webserver/cgi-bin/"
>
>As long "/webserver/cgi-bin/" is the correct *local* *filesystem* path to 
>the directory where your CGI is located, that seems fine.
>
>/Jonas
>
>--
>Jonas Eckerman, jonas_lists@frukt.org
>http://www.fsdb.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
>

_________________________________________________________________
Find love on MSN Personals http://personals.msn.com.sg/


---------------------------------------------------------------------
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


[users@httpd] Resolved -> Executing CGI Scripts that have no File Extension in Apache 1.

Posted by ce...@bellsouth.net.
  Thanks to each of you who responded to this so quickly. I tried various
things that you suggested and in the end in turned out that the problem was
caused by having an Alias and a ScriptAlias with the same paths.  By
commenting out the Alias line below, everything started working.  It worked
whether I put it inside an If module construct or outside.  Using Apache at
our company is frowned on because of the "Supposed" Lack of Support.  Well,
this being my first Apache Support request; albeit an important one, showed
that the resources are out there.

# Alias /cgi-bin/              "/webserver/cgi-bin/"

ScriptAlias /cgi-bin/        "/webserver/cgi-bin/"

#
# Set Options for cgi-bin directory used by Web Applications
#
<Directory "/webserver/cgi-bin/">
   AllowOverride None
   Options All MultiViews
   Order allow,deny
    Allow from all
</Directory>

Thanks Again,
Charlie Bastnagel


---------------------------------------------------------------------
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