[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting Apache to transfer .sh file instead of trying to execute it as CGI



On Fri, Nov 04, 2005 at 04:03:26PM +0100, Jean-Marc Liotier wrote:
> Does anyone here have any idea about how I can persuade Apache to treat
> this shell script as a normal text file ?

I believe it is a mime-type issue. Try putting the following in a
.htaccess file in the same directory:

	AddType text/plain .sh

You need Override FileInfo at least (see
<http://httpd.apache.org/docs/1.3/mod/directive-dict.html#Override> for
1.3)

-- 
Jon Dowland
http://jon.dowland.name/



Reply to: