Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Apache Web Serving with Jaguar, Part 2
Subject:   missing SSI output!
Date:   2004-06-03 06:41:24
From:   mactosh
First, thanks for GREAT tutorials...
I followed every tutorial from the day I started trying to serve webpages on my machine. The CGI section worked fine but when i follow the directions for implenting the test-cgi in a file i call index.shtml where i put the html: <h1>Gleefully Served By Mac OS X</h1>

<!--#include virtual="/cgi-bin/test-cgi"-->

It does not return the cgi output. Only the Glee-text.
Where am I to look for error. Yes I have restarted the server after I edited the conf file.
Any response will be appreciated.
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • RE: missing SSI output!
    2006-07-15 19:59:12  jahuda [View]

    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!