View Single Post

  #3 (permalink)  
Old 07-02-2003
rach
 
Posts: n/a
Default Re: Apache 2.0.44 offers download instead of executing Batch File

I have been working at this too. For the longest time I couldn't get ANY
batch file to work right till I tried this simple batch file:

@echo off
echo Content-Type: text/plain
echo.
echo Hello, world!

But I still would get a download instead of execution with
http://domain.com/cgi-bin/test.bat however doing this would execute it:
http://domain.com/cgi-bin/test.bat? sometimes - then later just invoking
http://domain.com/cgi-bin/test.bat would execute it and adding the ? at the
end made it want to download.. The behavior is a little strange.

I'm using the latest Apache2.0 on windows2000, and my error logs show no
errors and I'm using the "ScriptInterpreterSource registry" directive to
execute it in its "VirtualScriptAlias E:/apache-root/vhosts/%0/cgi-bin"
directory.

Rach



"Lars Duelfer" <lars@summerbeats.de> wrote in message
news:d14e6c4b.0307011446.3d1bfdbb@posting.google.c om...
> Hello Everybody,
>
> I would like to execute a batch file as a cgi skript. My server is an
> apache 2.0.44 under windows. After calling the skript via a HTML-Form,
> the server offers me to save or open the batch file but doesn't
> execute it.
>
> I tried the same with an apache 1.3.something and it worked, Does
> anybody know, why it doesn't work with Apache 2.0.44.
>
> Thanx a lot for your answers.
>
> Lars