4.13 Apache SSLサポート
ApacheサーバーはHTTP SSLサーバーになるように構成できます。
以下はIBM Apache Serverの構成例です。
# Apache構成 - SSL JSMサービス
#
LoadModule ibm_ssl_module /QSYS.LIB/QHTTPSVR.LIB/QZSRVSSL.SRVPGM
#
Options None
Listen 10.2.0.170:443
ServerRoot /www/jsmapache
DocumentRoot /www/jsmapache/htdocs
# DefaultFsCCSID 37
# DefaultNetCCSID 819
# ServerUserID USERPROFILE
#
LogLevel Warn
LogCycle Daily
ErrorLog logs/error_log
CustomLog logs/access_log combined
LogFormat "%{User-agent}i" agent
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{Cookie}n \"%r\" %t" cookie
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
#
SetEnvIf "User-Agent" "Mozilla/2" nokeepalive
SetEnvIf "User-Agent" "JDK/1\.0" force-response-1.0
SetEnvIf "User-Agent" "Java/1\.0" force-response-1.0
SetEnvIf "User-Agent" "RealPlayer 4\.0" force-response-1.0
SetEnvIf "User-Agent" "MSIE 4\.0b2;" nokeepalive
SetEnvIf "User-Agent" "MSIE 4\.0b2;" force-response-1.0
SetEnvIf "User-Agent" ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
#
ScriptAliasMatch ^/cgi-bin/jsmadmin(.*) /qsys.lib/jsm.lib/jsmadmin.pgm$1
ScriptAliasMatch ^/cgi-bin/jsmproxy(.*) /qsys.lib/jsm.lib/jsmproxy.pgm$1
ScriptAliasMatch ^/cgi-bin/jsmdirect(.*) /qsys.lib/jsm.lib/jsmdirect.pgm$1
#
# StartCGI 1
# SendBufferSize 32768
# ReceiveBufferSize 32768
#
#ユーザー名ベースの仮想ホスティング
NameVirtualHost 10.2.0.170
#
<VirtualHost 10.2.0.170>
#最初の仮想ホストのディレクティブが省略値のホストになる
Options None
ServerName LANSA01
SSLEngine On
# SSLClientAuth required
SSLAppName QIBM_HTTP_SERVER_JSMSSL
CGIConvMode BINARY
TimeOut 3000
</VirtualHost>
#
<Directory />
Options None
Order Allow,Deny
Deny from all
AllowOverride None
</Directory>
#
<Directory /www/jsmapache/htdocs>
Options None
Order Allow,Deny
Allow from all
AllowOverride None
</Directory>
#
<Directory /qsys.lib/jsmlib.lib>
Options None
Order Allow,Deny
Allow from all
AllowOverride None
</Directory>