Working sith Server Side Includes on Panix

Server-side includes allow you add dynamic content to your HTML web pages. Some resources with basic information on SSIs are listed below.
Apache tutorial:
exec cmd
exec cmd does not work as expected on Panix. It is insecure and we do not recommend using it. If you absolutely must, you may place your compiled binaries within your document root, and call them using a relative path. To replace calls to exec cgi or include virtual, you must prepend the output of the script with the proper CGI headers.
print ("Content-type:text/plain\n\n");
before any other output. It doesn't matter whether you output a content type of text/plain or text/html, as the browser will interpret the data within the scope of the calling document.
exec cgi vs. include virtual
You cannot pass new query information as part of an SSI exec cgi directive. The QUERY_STRING of the current SSI script will be passed to the CGI script. You cannot change them! If you want to pass different parameters, use include virtual.
absolute vs. relative paths
exec cgi and include virtual both require a URL path as their argument. If the URL path begins with slash, it will be looked up from your domain's web document root; if not, it will be looked up relative to the current SSI document. An absolute path called in a personal web context might look something like /~username/pcgi-bin/script.cgi

Last Modified:Friday, 18-Feb-2022 15:59:21 EST
© Copyright 2006-2021 Public Access Networks Corporation