Configuring and Managing MPE/iX Internet Services (July 2001)

190 Chapter9
Apache for MPE/iX
Sample Module Code (mod_hw)
CODE ------------LOGICAL RECORD------- ----SPACE---- FILENAME
SIZE TYP EOF LIMIT R/B SECTORS #X MX
128W VB 19 204800 1 32 1 8 index.html
80B FA 54 204800 1 32 1 8 index1.html
To convert an ASCII-type file (.htm*, .shtm*, or .txt), use the tobyte
utility with the -at option. If it is a binary-type file (such as .jpeg, .jpg,
or .gif), do not use the -at option:
shell/iX>tobyte -at /APACHE/PUB/htdocs/index.html
/APACHE/PUB/htdocs/newindex.html
For more information on the “tobyte” utility, consult the POSIX help
facility (i.e., man tobyte).
If the Apache web server seems slow in responding, you might try
running the Apache job stream file, JHTTPD, in the C queue instead of
in the default D queue. The changes shown below allow Apache to run
in the C queue while keeping the default execution level for jobs in the
D queue. The jobpri command can be executed on the console or in a
systart file.
!job JHTTPD,www.apache;pri=cs;outclass=,2
jobpri cs
Additional Documentation
Much of the public information available on Apache can be used for
administrating Apache on MPE/iX, especially the description and usage
of the Apache configuration directives.
Sources for additional information include:
The Apache documents at http://docs.hp.com which contain
MPE/iX specific information.
The Apache online manual pages distributed as part of the Apache
product at http://yourserver.com/manual/index.html.
The Apache Software Foundation’s online documentation at
http://www.apache.org/docs.
Apache books, published by various publishers, such as O’Reilly and
Associates, Inc. and IDG Books Worldwide, Inc.
For writing, compiling, and using Apache extension modules (DSOs):
Writing Apache Modules with Perl and C, by Lincoln Stein and Doug
MacEachern, published by O’Reilly & Associates, ISBN
1-56592-567-X.
The web site for this book is http://www.modperl.com.