[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] SSI and full paths
- Subject: Re: [cobalt-users] SSI and full paths
- From: "Brian Curtis" <admin@xxxxxxxxxxx>
- Date: Tue Jan 2 07:21:00 2001
- Organization: Pomfret Computer Technologies
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> I have a problem using SSI. I want a file into all of my WEB pages
> (*.shtml) using some of the next directives:
>
> <!--#include virtual="/home/sites/site14/web/inc/head.ihtml" -->
This is not the correct syntax for a "virtual" include. The file referenced
should be relative to the public www root. i.e.:
Full URL: http://www.domain.com/dir/subdir/file.txt
The include would be:
<!--#include virtual="/dir/subdir/file.txt" -->
> <!--#include file="/home/sites/site14/web/inc/head.ihtml" -->
The above syntax looks correct. If you type "ls
/home/sites/site14/web/inc/head.ihtml" from a shell, see what happens. It
may be that you have an invalid path. What error message(s) is/are written
to the browser and/or error log?
> None of them works. They only work if I use a relative path. For example,
> this works:
>
> <!--#include virtual="./inc/head.ihtml" -->
See above (#include virtual).
> Anyone knows why I can't use full paths....?
You *should* be able to use full paths with the "#include file" directive.
Again, make sure your paths are valid.
--
Brian Curtis