[Xitami] Lack of SSI, shtml support

Roberto R. Morelli xitami@lists.xitami.org
Wed, 20 Jun 2001 14:02:51 -0700


Folks,

There is another way, I think better. I have a site
http://www.altair7.com/index.html that uses a perl script for opening page,
see for your self.

I do not have the SSI_INSECURE set.  I do have MIME types defined as following
for the master config:

	 .pl = c:\perl\bin\perlis.dll
	.cgi = c:\perl\bin\perlis.dll

This solved all my problems.

Steps:

1. http://127.0.0.1/admin
2. configuration -> mime
3. enter the above values
4. save
5. click on restart from the main page

Done.

With that done, then this works:

	http://www.altair7.com/cgi-bin/od.pl

This works with xitami 2.4d1 through 7 and xitami pro versions.

Hope that helps, always make sure that you protect your perl scripts.

Cheers,
-Roberto

Patrick Olson wrote:
> 
> This is how I got Perl running in Xitami
> it allows me to use,
> 
> <!--#exec cgi="/cgi-bin/test.pl" -->
> 
> This SSI command
> which is a potential security risk for your system
> is only accepted if the environment variable
> SSI_INSECURE is set to 'yes'
> Under Windows NT
> in the System Control Panel
> under 'Environment
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Start->Settings->Control Panel
> 
> Double click on System
> 
> From the pop-up box select the Environment tab
> 
>  In the Variable entry field type SSI_INSECURE
>  In the Value entry field type YES
>  (Make sure it goes where you want it,
>   System Variables probably.)
> 
> Click OK
> 
> Reboot?  (I don't know if this is required.)
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> 
> under Windows 95/98 by adding
> SET SSI_INSECURE=yes to the autoexec.bat.
> to run SSI.
> If Perl is installed correctly?
> On a windows system,
> You then should be able to call
> Perl from anywhere in your system.
> This allows the shebang to be #! perl -w
> and does not need to be like this
> #! c:\perl\bin\perl.exe
> this also allows the use of
> #! /usr/bin/perl
> for the shebang. so as long
> as we don't use win32 specific modules
> or system calls we can keep our programs
> cross platform Compatible.
> 
> Running Windows98
> Xitami v2.4d6
> 
> in your
> autoexec.bat
> 
> SET PATH=C:\PERL\BIN;%PATH%
> SET SSI_INSECURE=YES
> 
> defaults.cfg
> [Filter]
>     .shtm=perlssi
>     .shtml=perlssi
>     .ssi=perlssi
> [Ssi]
>     Enabled=1
>     Exec=1
> 
> hope this helps
> http://www.isonline.com/xitami/2000/Jun/Msgs/l2w81135.html
> http://127.0.0.1/xitami/index5.htm
> http://127.0.0.1/xitami/index6.htm
> 
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami