Configuring and Managing MPE/iX Internet Services (July 2001)
Chapter 9 167
Apache for MPE/iX
Major Components
Configure Apache
The /APACHE/VUUFF/conf directory contains the Apache configuration
files. You will need your own copies of these under the
/APACHE/PUB/conf directory. The .sample files are derived from the
.default files with modifications for MPE/iX. The installation job sets
up links to the /APACHE/VUUFF/conf directory so the following copy
commands will get the new versions. Make sure to logon as MGR.APACHE
before beginning configuration:
:HELLO MGR.APACHE
:XEQ SH.HPBIN.SYS -L
shell/iX> cd /APACHE/PUB/conf
shell/iX> cp mime.types.sample mime.types
shell/iX> cp magic.sample magic
shell/iX> cp httpd.conf.sample conf
shell/iX> cp access.conf.sample access.conf (optional)
shell/iX> cp srm.conf.sample srm.conf (optional)
The access.conf.sample file and the srm.conf.sample file need not be
copied. These files were used in earlier versions of Apache but their
content is now included in the httpd.conf file. However, if these files
exist, Apache will read and process them after processing the httpd.conf
file.
Edit httpd.conf
Apache reads the httpd.conf file and the mime.types file at startup
(and access.conf and srm.conf if they exist). These configuration files
determine how Apache behaves. It is usually not necessary to modify
the mime.types file. Edit the httpd.conf file for your own server, you
may also wish to change other default values in httpd.conf.
The Httpd.conf is a bytestream file which can be edited on the
HP e3000 using “vi” or can be modified from a PC if Samba is installed
on the HP e3000.
shell/iX> cd /APACHE/PUB/conf
shell/iX> vi httpd.conf
1. Modify the following httpd.conf directives by replacing
“yourserver.com” with your own server name:
• ServerAdmin MGR.APACHE@yourserver.com
• ServerName yourserver.com
All lines beginning with # are comments and are ignored by the
HTTPD program file. Changes to the global configuration files do not
take effect until the web server is started or restarted via kill
–HUP.