[Xitami] Using a CGI for a default web page?
Gene Angel
xitami@lists.xitami.org
Thu, 07 Apr 2005 13:08:43 -0400
This is a multi-part message in MIME format.
--------------010500010308060502080404
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Magnus Wedberg wrote:
>>>[Server]
>>>default1=index.html
>>>default2=index.htm
>>>default3=index.php
>>>default4=index.php3
>>>default5=default.htm
>>>default6=index.shtml
>>>default7=/cgi-bin/indexer.exe
>>>
>>>
>>The defaults are webpages, they apply to all directories when the
>>filename is not specified.
>>
>>"If no filename is specified, look for default1 in requested
>>directory, if not present look for default2, ..."
>>
>>I'm not sure Xitami can handle directories.
>>
>>
>
>I'm pretty sure it can't. The solution (if any) to this is probably
>to set up a filter that maps .exe to "cmd.exe /c" or something like
>that. I haven't done it in Xitami, but I vaguely recall that I did it
>in Netscape FastTrack some time back in the dark ages.
>
>You may have to wrap it in a batch file, too (map extension .exe to
>startcmd.bat which contains
>@echo off
>cmd.exe /c %1
>..and that should be it).
>
>
>
>
Good idea I'll give it a try. I'll try writing a program called
"exec.exe" I'll have the filter call. I'll have exec.exe abort any call
if the called exe file is not found in cgi-bin dir. That way users
arn't running .exe's into their home directories. Thanks for the info
I'll let you know how it goes!
Gene
--------------010500010308060502080404
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Magnus Wedberg wrote:
<blockquote cite="mid425542B6.12276.12493F7@localhost" type="cite">
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">[Server]
default1=index.html
default2=index.htm
default3=index.php
default4=index.php3
default5=default.htm
default6=index.shtml
default7=/cgi-bin/indexer.exe
</pre>
</blockquote>
<pre wrap="">
The defaults are webpages, they apply to all directories when the
filename is not specified.
"If no filename is specified, look for default1 in requested
directory, if not present look for default2, ..."
I'm not sure Xitami can handle directories.
</pre>
</blockquote>
<pre wrap=""><!---->
I'm pretty sure it can't. The solution (if any) to this is probably
to set up a filter that maps .exe to "cmd.exe /c" or something like
that. I haven't done it in Xitami, but I vaguely recall that I did it
in Netscape FastTrack some time back in the dark ages.
You may have to wrap it in a batch file, too (map extension .exe to
startcmd.bat which contains
@echo off
cmd.exe /c %1
..and that should be it).
</pre>
</blockquote>
Good idea I'll give it a try. I'll try writing a program called
"exec.exe" I'll have the filter call. I'll have exec.exe abort any
call if the called exe file is not found in cgi-bin dir. That way
users arn't running .exe's into their home directories. Thanks for the
info I'll let you know how it goes!<br>
<br>
Gene<br>
</body>
</html>
--------------010500010308060502080404--