Chapter 9. Using Server-Side Includes

This chapter discusses using server-side includes with IBM HTTP Server for

AS/400.

Server-side includes allow you to insert information into CGI programs and HTML documents that the server sends to the client. This chapter describes the commands that are required to make server-side includes work in your CGI programs and HTML documents.

Considerations for using server-side includes

Before using server-side includes on your server, there are a few issues you should consider. One issue is performance. Performance can be significantly impacted when the server is processing files while sending them. Another issue is security. Allowing users to run commands can be a security risk. Care should be taken when deciding which directives you use server-side includes in and in which directories you use the exec command. You can minimize the security risk if you do not enable the exec command.

You should also note that you cannot refer to files recursively. For example, if you are running file sleepy.html and the program finds

<--!#includefile="sleepy.html"-->the server does not detect the error and the server loops until it abends. However, you can refer to files within files. For example, file sleepy.html refers to files smiley.html references dopey.html.

Preparing to use server-side includes

To use server-side includes, you must add the AddType directive to your configuration file. Two examples follow:

Examples:

AddType .shtml text/x-ssi-html 8 bit 1.0

AddType .htmls text/x-ssi-html 8 bit 1.0

Note: If you use file extensions other than .shtml or .htmls, you should check the AddType directive to see if that extension already exists. See the configuration file, appendix listing, or the MIME form for a list of existing AddType directives.

You can also use the imbeds directive to specify whether server-side includes are used in HTML documents, CGI programs, or both. Examples of this directive follow:

Examples:

imbeds value imbeds on

Default: imbeds off

The server does not process your error files for imbeds, regardless of the file extensions or use of the imbeds directive.

© Copyright IBM Corp. 1997, 2000

131

Page 141
Image 141
IBM AS/400E manual Using Server-Side Includes, Considerations for using server-side includes, Examples

AS/400E specifications

The IBM AS/400E, now more commonly known as IBM i, is a robust and versatile midrange server that has been designed to provide a comprehensive computing solution for businesses of all sizes. First introduced in the late 1980s, the AS/400 series has undergone multiple enhancements and rebranding, with the AS/400E being one of the notable iterations. This powerful platform is closely associated with IBM's commitment to reliability, scalability, and integrated business solutions.

One of the main features of the AS/400E is its highly integrated architecture that combines hardware and software into a cohesive system. This integration allows for seamless operations, reducing the complexity typically associated with managing disparate systems. The system is powered by IBM's proprietary OS/400 operating system, which has evolved into IBM i, featuring advanced capabilities like object-oriented programming, integrated database management, and security features that are essential for enterprise environments.

A key characteristic of the AS/400E is its robust database support, primarily through the use of DB2 for i. This integrated database management system enables efficient data handling and retrieval, facilitating real-time business analytics and reporting. Furthermore, the platform supports a variety of programming languages, including RPG, COBOL, and Java, making it flexible for developers who require diverse tools for application development.

The AS/400E is also known for its exceptional reliability and uptime, making it a preferred choice for critical business applications in industries such as finance, healthcare, and manufacturing. This reliability is backed by advanced error detection and correction mechanisms, as well as redundancy features that help prevent data loss and minimize downtime.

In terms of scalability, the AS/400E can effortlessly expand to accommodate growing business demands. Organizations can increase processing power by adding more resources without significant disruption. This scalability, combined with the system’s built-in virtualization capabilities, allows businesses to optimize resource usage and streamline operations.

Security is another defining feature of the AS/400E. The platform incorporates various layers of security measures, including user authentication, encryption, and comprehensive auditing capabilities, ensuring that sensitive business data is protected against unauthorized access.

Overall, the IBM AS/400E remains a powerful tool in the enterprise computing landscape, providing businesses with an integrated, reliable, and secure solution for their technological needs. Its enduring popularity is a testament to its capability to evolve with changing business requirements while maintaining its core attributes of high performance and stability.