IBM Support

IBM HTTP Server server side (SSI) includes are not functioning

Troubleshooting


Problem

IBM HTTP Server server side includes are not served from the static page.

Cause

The AddOutputFilter directive restricts the file names and the .jsp was not included.

Resolving The Problem

Verify that the module for SSI is enabled in the httpd.conf file.

LoadModule include_module modules/mod_include.so

The httpd.conf file had an incorrect directive defined:

<Directory /usr/www/staticContent/MyApp>
  AddHandler server-parsed .htm
  AddType text/html .shtml .inc .htm .html
 
 AddOutputFilter INCLUDES .shtml .inc .htm .html
  Options +Includes
</Directory>

The following line needs to be added to the <Location> or <LocationMatch> container in the httpd.conf file instead of in the <Directory> container. The AddOutputFilter directive restricts the file names and the .jsp was not included which resulted in the request not being served by the Web server.

<Location /MyApp>
  SetOutputFilter INCLUDES
</Location>        

Note: Make sure to include a space after Location.
[{"Product":{"code":"SSEQTJ","label":"IBM HTTP Server"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Modules","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"}],"Version":"8.5.5;8.5;8.0;7.0","Edition":"Edition Independent","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
IBM HTTP Server

Software version:
8.5.5, 8.5, 8.0, 7.0

Operating system(s):
AIX, HP-UX, Linux, Solaris, Windows, z/OS

Document number:
358241

Modified date:
07 September 2022

UID

swg21317652

Manage My Notification Subscriptions