I am desperately trying to implement SSI. It's seems OK when pre-viewing
in DW, but after uploading to the remote server (unix), the file I want
to be attached by SSI doesn't show up in the page(s).
Facts about the set-up:
The pages are applied to a template with a table. The SSI-attached file
is the site menu and it's supposed to go in to one of the table's cells.
The pages (with the SSI-attached menu included) goes into one frame in a
frameset consisting of two frames.
Here's the questions:
1. There's a lot of links in this. The menu (that's SSI'ied into the
page) has about 25 links to other pages plus 5 images. Then the SSI link
itself. How is it about relative, absolute or URL linking? I've heard
that SSI is extremely sensitive to the wrong kind of link. Which am I
supposed to use? (aahh, to make it extra difficult: three of the links
in the menu goes to documents located at other servers, hence with
http:// linking. Plus one link MUST be an URL because it goes to the
cgi-bin)
2. Should I use virtual or file SSI?
3. Any other aspect I don't even know about?
Sorry for long Q. But I think you'd need the background to give an
adequate reply.
Oh, thanks for help in advance...
Dan
[httpd.apache.org...]
See the configuring your server section and make sure it is configured.
The section on 'including a standard footer' will explain the differences between virtual and file attributes.
[webmasterworld.com...]
Where as one located outside the locale directory ,use virtual..
<!--#include virtual="/foo/bar/foo.inc" -->
as for the cgi script, look at exec which will insert the output of the script into the page at the location where its called something like
<!--#exec cgi="/cgi-bin/foo.pl" -->
as for the remote url, try virtual with the full URL. If it doesn't pull it, I believe you would have to resort to writing a script but virtual should do the trick.
But believe you lost me on the description of the link setup...as in SSI would only be concerned with the location of the File to Include and the contents of said file are not its concern. They will be rendered as any other HTML content would be so that linking is normal just the use of file or virtual would be an issue for SSI.
HTH
<edit fixed quick SSI screwup>
(edited by: seriesint at 7:55 pm (gmt) on Dec. 16, 2001)
related thread [webmasterworld.com]
First; A MAJOR THANKS for input and ideas. I should have replied sooner, but have been swamped.
Since my hosts techs said that the server was configured for SSI, I took for granted that I was doing something wrong on my end.
After testing (thanks Brett, your suggestion lead me to that...), it showed that the server was NOT configured, so I did it myself. At this moment, I not getting the menu into the template (I get [an error occured while processing this directive]), but at least this was a giant leap in the right direction.
I will drill deeper into this. Hope I can come back with further questions if needed. You all have been a tremendous help!!! Thanks again.
D
Mine would only work with .shtml until I added this to .htaccess
AddType text/html .html
AddHandler server-parsed .html
Now it works fine with .html also.
Another thing it's too easy to mess up on is this:
<!--#include virtual="/foo/bar/foo.inc" -->
That blank space before the final two hyphens needs to be there - very easy to miss accidentally.
Thanks for new ideas.
I followed the link that Brett provided and found the test to see if the server was configured. It wasn't, contrary to what the support said. That's why I've been working my *** off for the past 4-5 days.
I didn't even know I had to install a .htaccess, but now it's done (with html, etc) and 99% of the pages are working beautifully!!!
However, one thing does not work.
I've got one page (a .dat file) in the cgi-bin that doesn't pull in the SSI as the other pages do. That directory is located two levels above the the file that's supposed to be pulled in. I have put a .htaccess file there, too, but something tells me that the cgi-bin and .dat files are different than regular html pages.
Suggestions are EXTREMELY welcome....
And BTW: The e-mail notifying from this forum doesn't seem to work either. I don't get any.
Am I cursed??????
D
For five days and numerous mails, the support staff at the host had me believe that they had their server configured for SSI. Five days out the drain...
Thanks to hints from you, I managed to test the site, install the .htaccess file and kick it into action.
So, with a few minor adjustments, everything is working like charm. I even managed to twist and bend that .dat file until it decided to co-operate.
Thanks everybody for your input. As I began doubting my sanity, and I think a few of you did, too.
D