PDA

View Full Version : ssi in pws


EasilyBefuddled
09-03-2002, 04:11 PM
I'm trying to generate a hit counter using Server Side Includes on MS Peer Web Services. I've tried several different commands, but the one that should work (and isn't), is:

<!--#exec cgi="../scripts/check.cgi"-->

The file containing this command is C:\inetpub\wwwroot\wonder.stm.

The cgi file is C:\inetpub\scripts\check.cgi.

C:\inetpub\scripts has also been labeled as the virtual directory "\Scripts".

.stm files are currently mapped to C:\winnt\system32\inetsrv\ssinc.dll.

Am I mapped to the wrong .dll? Is my include statement wrong?

Any input would be appreciated. Thank you.

Edit: It is my current understanding that the #exec command is only available for SSI on Windows 2000 or later (IIS and PWS). So as far as my using NT 4 SP 6, it looks like I'll have to find another solution.

ricardovw
01-17-2003, 04:59 AM
i have exactly the same problem :(

MCookie
01-17-2003, 10:43 AM
Not that I know anything of Win servers and this probably won't help, but there are servers on which SSI doesn't work when there's no space between the double quotes and the second comment tag.
<!--#exec cgi="script.cgi"-->
<!--#exec cgi="script.vgi" --> <<

Roy Sinclair
01-17-2003, 06:43 PM
By default IIS disables the use of the SSI EXEC command, you have to explicitly enable it. See this (http://support.microsoft.com/default.aspx?scid=kb;EN-US;233969) article in the MS Knowledgebase.

Is it just me or did a rash of SSI questions just hit the board? :D

whammy
01-18-2003, 12:20 PM
It's not you, Roy. ;)