JerryBarrett
Technical User
I have had this script bit working for weeks on IIS5 - its remained unchanged except for moving over to Win2K3 and IIS6 (HDD crashed - needed a new disk - gone RAID1 now)
Anyway - I can get it SSI going no-probs.... with Active Perl, but I get strange results on a bit of code with IIS6 - as I said it worked a treat with IIS5+
<!--#if expr="${SERVER_SOFTWARE} = /Apache/" -->
<!--#exec cgi="cgi-bin/metasites.pl"-->
<!--#else -->
<!--#exec cgi="/cgi-bin/metasites.pl"-->
<!--#endif -->
It seems to exec the perl script both times as if the 'if' test is ignored - the first one fails because the path is incorrect for a MS system - but runs the second exec sweet as a nut... Obviously the reason for the test..
I get Error 3 - which is a fairly generic SSI IIS error..... as I said this was all working on IIS5 with the same version of ActivePerl.
Thoughts anyone?
Anyway - I can get it SSI going no-probs.... with Active Perl, but I get strange results on a bit of code with IIS6 - as I said it worked a treat with IIS5+
<!--#if expr="${SERVER_SOFTWARE} = /Apache/" -->
<!--#exec cgi="cgi-bin/metasites.pl"-->
<!--#else -->
<!--#exec cgi="/cgi-bin/metasites.pl"-->
<!--#endif -->
It seems to exec the perl script both times as if the 'if' test is ignored - the first one fails because the path is incorrect for a MS system - but runs the second exec sweet as a nut... Obviously the reason for the test..
I get Error 3 - which is a fairly generic SSI IIS error..... as I said this was all working on IIS5 with the same version of ActivePerl.
Thoughts anyone?