Apache
[Previous] [Main] [Next]

 
html++ is fully compatible with the Apache web server for various Unix operating systems, including Sun, AIX, BSDI, FreeBSD, Linux, and others. All you need to do is place your html++ executables in the cgi-bin directory for the server (or virtual domain):  
 
    ~www/cgi-bin  
 
To embed html++ output within another document, you must use Server-Side Includes. There are two ways to enable server-side includes with Apache:  
 
  • Use document filename extensions of ".shtml"
  • Place the line "XBitHack On" in the server's httpd.conf file, then enable the owner-execute bit of files containing server-side include statements (e.g., chmod 744). This is the preferred method by many users as it allows document filenames to use any extension, not just ".shtml".
 
Within the document, you must specify the application to be executed using an HTML comment. You must specify a full path. For example:  
 
    <!--#exec cmd="/home/biz/account/cgi-bin/htmlpp_app" -->  
 
You may also find it useful to simply include other static documents within a document, such as for page headers, page footers, copyright notices, etc. To do that, embed the following within your document:  
 
    <!--#include file="document.html" -->  
 
Note that the pathname for include'd files is relative to the directory of the parent document.  



©1998 DC Micro Development. All rights reserved.
No portion of this document may be c opied or reproduced without expressed written consent.
html++ is a trademark of DC Micro Development.