[thelist] SSI a blank file in IIS returns 404 error

Pete Prodoehl pete.prodoehl at cygnusinteractive.com
Mon Jan 13 16:49:01 CST 2003


I've seen something similar using IIS and ColdFusion, the solution we
used was to make sure the 'blank' file wasn't zero bytes, so I just put
an html comment in it like so <!-- --> when there was no other content
in the file.

Pete

Craig wrote:
>
> Have a small problem using SSI to include a blank file (file exists but
> there is no content in the file).  The file is not usually blank which then
> includes ok, but being a file which is populated from another file, it can
> sometimes be blank.  The problem is when the file is blank, instead of SSI
> including nothing, it writes the following text:
>
> HTTP/1.1 404 Object Not Found Server: Microsoft-IIS/5.1 Date: Mon, 13 Jan
> 2003 13:07:16 GMT Connection: close Content-Type: text/html
>
> 404 Object Not Found
>
> It writes that as text in the page, it doesn't actually point my browser to
> the servers 404 page.  Is there a way to get this working?  To include a
> blank file using SSI?
>
> Oh yeah, it's on IIS5.1




More information about the thelist mailing list