Page History
...
For more information refer to Apache HTTP Server Version 2.4: Apache Module mod_proxy
Following is an example of IBM Apache Server Configuration:
...
# Apache Configuration - Reverse Proxy
...
#
LoadModule proxy_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
...
LoadModule proxy_http_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
...
# LoadModule proxy_ftp_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
...
# LoadModule proxy_connect_module /QSYS.LIB/QHTTPSVR.LIB/QZSRCORE.SRVPGM
...
#
Options None
...
Listen 10.2.0.170:2334
...
ServerRoot /www/jsmproxy
...
DocumentRoot /www/jsmproxy/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
...
#
# Use name-based virtual hosting
...
NameVirtualHost 10.2.0.170
...
#
<VirtualHost 10.2.0.170>
...
# The first virtual host directive will become the default host
...
Options None
...
ServerName SERVER1
...
TimeOut 3000
...
ProxyReverse On
...
ProxyRequests Off
...
ProxyTimeOut 3000
...
<Proxy *>
...
Order Allow,Deny
...
Allow from all
...
</Proxy>
...
#
...
# Pass all requests
...
# ProxyPass / http://server1:1099/
...
# ProxyPassReverse / http:// server1:1099/
...
#
...
# Pass only CGI requests
...
ProxyPass /cgi-bin/ http://server1:1099/cgi-bin/
...
ProxyPassReverse /cgi-bin/ http://server1:1099/cgi-bin/
...
</VirtualHost>
...
#
<Directory />
...
Options None
...
Order Allow,Deny
...
Deny from all
...
AllowOverride None
...
</Directory>
...
#
<Directory /www/jsmproxy/htdocs>
...
Options None
...
Order Allow,Deny
...
# Deny from all
...
Allow from all
...
AllowOverride None
...
</Directory>