|
|
|
SuperNova does support SSI. The simplest example of server-parsed HTML is to have a file "foo.shtml" containing this text: Line one
And then have a file "mycgi.cgi" that contains, on Unix: #!/usr/bin/perl print "Content-type: text/htmlnn";
And when you access "foo.shtml", it will output: Line one
If your include directive is <!--#exec
cgi="..." -->, then the cgi program you run must output a standard CGI
header (Content-type: text/html)
Any file named foo.shtml will be parsed
automatically by Apache on our servers.
Server-side includes in "custom trailers" will not work, since custom trailers are appended to the output of your web pages after all other processing has been done on them. Any server-side includes that you put into your custom trailers will be sent directly to the browser without being parsed. By default, we don't set up our servers to recognize server-side includes (SSIs)in regular .html pages because there is a loss in performance when every single .html page is parsed. More Help for using SSI can be found at: http://hoohoo.ncsa.uiuc.edu/docs/tutorials/includes.html SSI That is Not Allowed EXEC CMD .shtml page shows up as code If this happens, SSIs haven't been enabled for the domain. You need to contact SuperNova at support@super-nova.net and we will enable it for you. Parsing .html as well as .shtml By default, we don't set up our servers to recognize server-side includes (SSIs) in regular .html pages because there is a loss in performance when every single .html page is parsed. IF YOU ARE NOT USING FRONTPAGE, you can set this up as a Mime Type in an .htaccess file. Open the .htaccess file in the domain-www directory and add this line, or create a file named .htaccess and insert just this line: AddType text/x-server-parsed-html .html If they are using FrontPage, you are out of luck. Using an .htaccess file will mess up FrontPage. SSI test program Simple SSI program to test if SSIs are set up to work on your domain: #<HTML>
Save this as something like test.shtml in yourdomain.com-www and call it from a browser. If LAST_MODIFIED is replaced by the file creation date and time, SSIs work. Source: "Server Side Includes" by Reuven M. Lerner (Linux Journal, June 1998). |