Configuring and Managing MPE/iX Internet Services (MPE/iX 6.5)

Chapter 9 151
Apache for MPE/iX
Major Components
Configure Apache
Apache reads two global configuration files when it starts: httpd.conf
and mime.types. These configuration files determine how Apache
behaves. Earlier versions of Apache read two additional global
configuration files: access.conf and srm.conf. These additional global
configuration files can be still be used, but by default they are empty
and their original content is now included in the httpd.conf file.
Edit your Configuration File
The mime.types file comes as mime.types.default and must be
copied or renamed to mime.types. Similarly, the magic.default file
must be copied or renamed. The httpd.conf file comes in two different
versions. The httpd.conf.default file is for a UNIX-based platform
installation. The httpd.conf.sample file was derived from the
httpd.conf.default file with modifications for MPE. This is the file
you should edit.
shell> cd /APACHE/PUB/conf
shell> cp mime.types.default mime.types
shell> cp magic.default magic
shell> cp httpd.conf.sample httpd.conf
shell> vi httpd.conf
1. Uncomment and replace “yourserver.com” with your own server’s
name for the ServerAdmin and ServerName directives. You may also
choose to make other changes. The Apache Server Project web site,
http://www.apache.org/docs, has information about all of the
configuration directives.
All lines beginning with # are comments and are ignored by the
HTTPD program file. Also note that the content of the configuration
files is case sensitive.
Changes to the global configuration files do not take effect until the
web server is started (or stopped and restarted if it is already
running).
The httpd.conf file could, alternatively, be edited with a PC editor
by using SAMBA and setting up a share for the /APACHE/PUB/conf
directory.
2. Verify the configuration file. It is a good idea to verify your
configuration files before trying to start the web server. This
verification is for syntax checking only.
shell>/APACHE/PUB/HTTPD -t