(Answer) (Category) NetMAXFAQ : (Category) WebServer :
How do I set up SSI (Server Side Includes)?
Applies to: NetMAX WebServer, Internet Server ProSuite and Professional version 3.x - 4.0x
address-suppressed
You can enable SSI through the NetMAX interface. There are two methods:

Method 1

For this method, we're going to create an .htaccess file to each directory where we want to execute SSI. Because we're going to be using an .htaccess file, we need to allow this file the override the default settings:

  1. From Home|Services|WWW, click on the WEB SITES tab, click on the pencil next to the appropriate web site, click on the OPTIONS tab, then ensure that the "Enable CGI Execution" and "Enable .htaccess to Override Defaults" checkboxes are checked.
  2. Click on RETURN, then STORE, then COMMIT, and commit your changes.
  3. Next, you'll need to create a file named .htaccess in the directory where you want to execute SSI. The file should contain the following line:

    XBitHack on

  4. Set execute permissions on the HTML document that contains the SSI.

The "XBitHack on" directive tells the server to treat each executable file in the directory as a server-parsed-html file.

Method 2

For this method, we'll setup a specific mime type that will tell the WebServer to treat as server-parsed-html.

  1. From Home|Services|WWW, click on the WEB SITES tab, click on the pencil next to the appropriate web site, click on the OPTIONS tab, then enxure that the "Enable CGI Execution" checkbox is checked.
  2. From Home|Services|WWW, click onthe MIME TYPES tab, click on CREATE, and create the following Mime Type:

    Extension: shtml
    MIME Type: text/x-server-parsed-html
    Local Execution Method: None

  3. Click on RETURN, then STORE, then COMMIT, and commit your changes.

  4. Create your HTML documents that contain SSI with the .shtml extension.

Notes for both methods: If you are an advanced Apache user, then it is important to note that checking the "Enable CGI Execution" checkbox actually adds the ExecCGI and Includes Options. Also, because the webserver runs as nobody, you'll need to ensure that your cgi's are executable by the nobody system user.
address-suppressed

Next: (Answer) How do I enable CGI applications with the .pl extension?
This document is: http://www.netmax.org/cgi-bin/fom.cgi?file=220
[Search] [Appearance]
This is a Faq-O-Matic 2.721.
This FAQ administered by ...Cybernet Systems Corp.