• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 798
  • Last Modified:

SSI and Domino

Hello,

I am trying to run an shtml page which has SSI on a Domino 6 server, but it is not working. Here are the details:

Content of index.shtml is:
[ <!--#include file="ssi.html" --> ]

Content of ssi.html:
Hello from SSI

File "httpd.cnf" contains:
imbeds on .shtml


When I try to view index.shtml, it dislays the File Download dialog, asking me whether I want to open it or save it (Q1: why it does not just display it, why Domino wants to download it instead?)

When I select open, it saves the file locally and then open it -as a temprary file- in the browser. The content of the file seems to be correct

I tired to amend the include statement to use "virtual" instead of "file" (Q2: what is the difference between the 2 options anyway?), and then when I try to open the shtml file, again it saves it locally, and it displays it on the browser, but with the below error:
******>> An error has occurred while processing a Server Side Include file
(Q3: what does that error mean, and how to fix it?)


Can you please assist


Many Thanks,

0
Areej
Asked:
Areej
  • 5
  • 2
  • 2
  • +1
3 Solutions
 
qwaleteeCommented:
You have to associate the shtml extension with the MIME type text/html

I'm not convinced shtml works in Domino anyway.
0
 
Sjef BosmanGroupware ConsultantCommented:
Can't quite follow, sorry :|

I think you're mixing things up a bit. The file httpd.cnf is for the standard Apache HTTP-process on Linux. Domino has its own HTTP process. The two are completely separate. Where does Domino come in into this story??
0
 
HemanthaKumarCommented:
Domino doesn't know how to handle includes..

What you can do is use DHTML, innerHTML property and set the file ..

~Hemanth
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
AreejAuthor Commented:
qwaletee,
How to to associate the shtml extension with the MIME type text/html?
httpd.cnf file already contains the following:
AddType  .html     text/x-ssi-html               8bit    # HTML
AddType  .htm      text/x-ssi-html               8bit    # HTML variant
AddType  .htmls    text/x-ssi-html               8bit    # HTML w/ Server-side includes
AddType  .shtml    text/x-ssi-html               8bit    # HTML w/ Server-side includes


sjef bosman,
I am running Domino server and not Apche. "httpd.cnf" already exists under the Lotus\Domino\Data folder


Hemantha,
I read in the notes.net that Domino supports SSI.
In addition, the below are included in the "httpd.cnf" which shows that it does:
################################################################################
#
#  imbeds:
#    Use this directive to enable server side includes.
#    Syntax:  imbeds   <on/off/files/cgi><.suffix>
#             <.suffix> is optional - if present, it limits which files are
#             parsed for server side includes.
#    Default: on .shtml
#    If more than one imbeds directive is specified, the last one is used.
#
################################################################################
imbeds on .shtml


Any help?


0
 
AreejAuthor Commented:
By the way, does anyone knows how to increase the points of this question?

Thanks
0
 
Sjef BosmanGroupware ConsultantCommented:
Areej,

Sorry if I misunderstood you. The file is indeed in the Domino data directory, but it explicitly states that "The only directive that is supported is the AddType directive. All other modifications, additions or deletions of directives in this file, except for MIME types (AddType directive) are not used.". What's your Domino version? The file I talked about I found on R6.0.3.

Better contact the person who wrote the httpd.cnf file changes, I suppose he's at www.bluestream.org/Domin/ConfigureHTTPDcnf.htm In another link, they talk about the Lotus Domino Go Webserver, which might behave differently. On Google, you get only 9 hits when looking for "httpd.cnf imbeds domino".

Sjef
0
 
AreejAuthor Commented:
By the way, I have tested the same on another Domino server and it worked. That means Domino supports SSI.

I am trying t find the differences between the 2 servers, but could not find anthing yet!!!

Help please!!
0
 
AreejAuthor Commented:
I found hte below in http://www.keysolutions.com/NotesFAQ/doessupport.html

Does Domino support Server-Side Includes (SSI)?
Yes, but only for files with an extension of .shtml. If your files are named with an extension of .html or .htm, change the following line in your http.cnf file in your Notes data directory:
imbeds on .shtml


That means Domino suppots it, but how?!!!
0
 
AreejAuthor Commented:
Ok, I think if I can tell Domino to open the shtml rather than trying to download it, that will solve the problem. Any idea how this can be done?
0
 
HemanthaKumarCommented:
Areeej, in R6 httpd.cnf is not honored ...so you have to add mime types in your domino directory..

Goto Configuration tab in the administrator and open web..file identifications view..
Add new file identification and
set mime type to text
set subtype to X-SSI-HTML
set File extension to shtml
set Description to HTML w/ Server-side includes

similarly do this for HTMLS

And restart the server for the changes to take affect
0
 
qwaleteeCommented:
Good cathc, Hemantha.

I think R6 regens httpd.cnf at startup, which is when the HTTP daemon reads the file, so effectively, editig it is unsupoprted.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 5
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now