httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lawson.Adam" <Adam.Law...@ftb.ca.gov>
Subject RE: [users@httpd] Executing CGI Scripts that have no File Extension in Apache 1.3
Date Tue, 16 Dec 2003 22:05:46 GMT
This is an easy fix. The problem is with your ScriptAlias directive. Set a new alias within
your httpd.conf file as follows and all scripts in your cgi-bin without an extension will
execute:
 
ScriptAlias /cgi-bin/ /var/www/html/your_website/cgi-bin/
(or whatever the path is to your website's cgi-bin is)
 
Then, any files in your /var/www/html/your_website/cgi-bin/ are treated as CGI, even without
the extension. The first part /cgi-bin/, that is the visible part within your URL. i.e. http://www.domain.com/cgi-bin/
. So a script named "myscript" at /var/www/html/your_website/cgi-bin/myscript is the same
script as http://www.domain.com/cgi-bin/myscript 
 
Hope this helps,
 
Adam
 

	-----Original Message----- 
	From: Eelco Alosery [mailto:info@multi-graphics.nl] 
	Sent: Tue 12/16/2003 1:24 PM 
	To: users@httpd.apache.org 
	Cc: 
	Subject: Re: [users@httpd] Executing CGI Scripts that have no File Extension in Apache 1.3
	
	

	Do you have the foloing ling in the uotput of the cgi script:
	
	print "Content-type: text/html\n\n";
	
	If you dont have it, that coult be the problem for you
	
	
	
	
	Op 16-dec-03 om 22:18 heeft Jonas Eckerman het volgende geschreven:
	
	> 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
	>
	
	
	---------------------------------------------------------------------
	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