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

168 Chapter9
Apache for MPE/iX
Major Components
These are the only changes that need to be made to start up the web
server. For information about other configuration directives, visit the
online Apache documentation at http://www.apache.org/docs.
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/iX> /APACHE/PUB/HTTPD -t
Syntax OK
Setup the JHTTPD Job Stream File
The JHTTPD.sample file should be copied to JHTTPD in PUB.APACHE
and modified as needed. The /APACHE/VUUFF directory contains the new
JHTTPD.sample file. The Apache installation job sets up a link to
/APACHE/VUUFF so that the copy command gets the new version.
shell/iX> cd /APACHE/PUB
shell/iX> cp JHTTPD.sample JHTTPD
shell/iX> cat JHTTPD
!job jhttpd,www.apache,pub;outclass=,2
!setvar TZ 'PST8PDT'
!xeq sh.hpbin.sys "-c 'umask 007;./HTTPD -f conf/httpd.conf'"
!eoj
The JHTTPD Job Stream File is used to run the HTTPD web server
program in standalone mode within your local timezone. The timezone
variable, TZ, should be set to the local timezone (for example,
EST5EDT for Eastern Daylight Time, PST8PDT for Pacific Daylight
Time, and MST7MDT for Mountain Daylight Time) or, TZ can be
removed from JHTTPD and set in a system logon UDC. For more
information about setting the timezone value, please read the POSIX
help file.
shell/iX> man timezone
Prior to Apache 1.3.14, JHTTPD was an MPE/iX fixed-ASCII file.
Starting with Apache 1.3.14, JHTTPD is a bytestream file. Note also
that the file mask is set to 007 in JHTTPD. This means that files
created by Apache will lack permissions for “other”. This feature
tightens security so that Apache-created files are accessible only within
the APACHE account.
The JHTTPD file does not come with a password. If desired, the
JOBSECURITY command can be used to provide password protection
without adding your password to the JHTTPD file.