Forum Moderators: coopster & phranque

Message Too Old, No Replies

Extended SSI on IIS

         

Tighe

3:20 pm on Feb 7, 2002 (gmt 0)



Where I work our web server is an Apache Server -- We are going to start using SSI -- and I would like to be able to set variables e.g.

<!--#set var="linkname" value="/some/url.htm" -->

and then call that variable later in the page:

<!--#echo var="linkname" -->

which can be done in apache 1.2 and higher -- but on my personal workstation I use Win 2K and IIS which does not support this -- does anyone know how to make IIS support this?

I would hate to have to install Apache on my workstation.

Xoc

8:19 pm on Feb 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why would you want to do that on IIS instead of using the standard ASP way of doing it?

First make your page using the extension .asp.

Then:

<%
Dim linkname
linkname = "/some/url.html"
%>

Further down on the page

<%=linkname%>

Tighe

8:47 pm on Feb 7, 2002 (gmt 0)



Because IIS is on my workstation where I develop pages -- but the pages will end up on an Apache Server when they are finished.

Xoc

9:37 pm on Feb 7, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Right. Sorry, didn't read your original question correctly.

It seems that IIS doesn't support #set.

Here is the IIS SSI reference [microsoft.com]

Tighe

9:41 pm on Feb 7, 2002 (gmt 0)



Thanks Xoc,

Does anyone know of a hack to IIS to make it support #set?