Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SSI revisited

Status
Not open for further replies.

JerryBarrett

Technical User
Jan 18, 2004
76
GB
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top