advertisement

Article:
  Apache Web Serving with Jaguar, Part 2
Subject:   RE: missing SSI output!
Date:   2006-07-15 19:59:12
From:   jahuda
Response to: missing SSI output!

If you want a test cgi script simply to see if your cgi will work, try this


#!/usr/bin/perl -wT


print "Content-type: text/html\n\n";
print "Hello, world!\n";



As for enabling your SSI, I had that same problem and the solution was a simple one. Hopefully it'll work for you.

The tutorial tells you to search for "Library/WebServer/Documents" in the httpd.conf file, and that the second one is the line you want. Well, you have to remember that he is working without all the commented lines that your httpd.conf file probably has.

Instead, search for the line (it'll be your first result)

Directory "/Library/WebServer/Documents"

Make sure the line you are looking at does not say

Directory "/Library/WebServer/Documents/manual"

That screwed me up the first time around. Anyway, underneath you'll see some commented lines, and then the "Options" line. Add the word, "Includes," so that it looks like this

Options Indexes FollowSymLinks MultiViews Includes

I hope that helps!