in reply to Re: OT: Using global SSIs
in thread OT: Using global SSIs

The first would would work, I know that without testing. I just have a lot of subfolders and folders inside of subfolders and I'd hate to have to have each SSI statement fixed. Is there no absolute path one?

Replies are listed 'Best First'.
Re^3: OT: Using global SSIs
by Joost (Canon) on Jan 14, 2005 at 11:32 UTC
Re^3: OT: Using global SSIs
by radiantmatrix (Parson) on Jan 14, 2005 at 17:02 UTC

    Well, this site on Apache SSI's #include offers the file= parameter. Now, this can't be absolute paths, but it can be relative to the physical filesystem (just not '../').

    However, the virtual= parameter allows you to use absolute paths -- it's just that the 'root' is the DocumentRoot, not the filesystem root. If you're using this script with multiple virtual servers on the same machine, you can use a ScriptAlias or Alias in your Apache config to make sure, e.g. that all references to "/chat/" on any virtual host will access "/home/legato/scripts/chat/". Adjust as needed, of course.

    radiantmatrix
    require General::Disclaimer;
    s//2fde04abe76c036c9074586c1/; while(m/(.)/g){print substr(' ,JPacehklnorstu',hex($1),1)}