[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New user - How to configure PI3 to...
Hi,
Yes the reason is because it is trying to execute the HTML. For many
reasons (security, numerous different CGI extensions.), it's best to
separate HTML and CGI. But if you are absolutely diligent on putting html
into the cgi-bin directory:
Search through your config.pi3 for "Name Scripts". Then scroll down a few
lines to the "Handle StandardCGI", add the modify it into "Handle
StandardCGI Condition="&cmp($c,application/octet-stream)"and then right
after that, add the line: "Handle SendFile". This will only work if the
CGI has the mimetype of application/octet-stream -- such as .exe. But then
so does .lzh. So that means if you have a lzh file, it will try to execute
it.
Once again, you should try to separate the CGI from the HTML. This was
just a small workaround, with limited success. It is possible to get pi3
to behave like IIS in this fashion, but I believe that major rewrites are
needed.
Enjoy.
At 06:57 PM 10/27/98 -0200, Alexandre Yuji Yamamoto wrote:
>Hi all,
>
>I'm just a new user and try to configure PI3 to accesses a directory that
will
>have CGI and DOCUMENTS (.htm ) . It's possible ? ( well , it's works on
IIS4.0
>) - I make a default configuration ( mappint this subdirectory to a CGI
type )
>, and when I request a document ( index.htm ) I received a error. ( 193 )
, but
>when I request a CGI
>( index.exe that only takes the same index.htm and send it to server ) , the
>page comes to browser without images
>It's seems that the server trying to execute the images (.gif) and (.htm)
>Some one knows how to do that ? or this is not possible with pi3...? or I
must
>separate CGI from DOCUMENTS ...?
>
>The log :
>
>[Tue Oct 27 20:01:55 1998 GMT] CGI: DoExecCGIChild() failed. Error code is
193.
>Start of command line is 'C:\Pi3Web\webroot\ole\index.htm '.
>[Tue Oct 27 20:02:08 1998 GMT] CGI: error executing CGI program system
specific
>error code is '193'.
>[Tue Oct 27 20:02:08 1998 GMT] CGI: DoExecCGIChild() failed. Error code is
193.
>Start of command line is 'C:\Pi3Web\webroot\ole\novidades.htm '.
>[Tue Oct 27 20:02:08 1998 GMT] CGI: error executing CGI program system
specific
>error code is '193'.
>[Tue Oct 27 20:02:08 1998 GMT] CGI: DoExecCGIChild() failed. Error code is
193.
>Start of command line is 'C:\Pi3Web\webroot\ole\imagens\bk_formas.gif '.
>[Tue Oct 27 20:02:08 1998 GMT] RefuseFileByMask: File with path
>'C:\Pi3Web\webroot\ole\adm' refused. Required filemask is 'F'. Reason: File
>does not match required mask. Response status set to '403'.
>
>
>
>thanks in advance...
>
>Alexandre Yuji Yamamoto
>K2 Media Group Ltda.
>tel: 011-5581-7931
>http://www.k2.com.br
>
>Visite Tambem a mais nova Paixao Nacional
>http://www.ole.com.br
>