Apache mod_wcm.so SOAP configuration for Solaris


A pre-compiled version of Apache 2.2 is available from OpenCSW's dublin catalogue.
Apache can be installed using OpenCSW's pkgutil command:-

$ pkgutil -i apache2

As Apache is dependent on many other packages it is strongly recommended to use pkgutil to perform the installation as it will automatically download & install the pre-requisites.

The configuration of Apache is held in /opt/csw/apache2/etc.
Configuration files for Apache modules are kept in the /opt/csw/apache2/etc/extra directory and loaded by adding Include directives to the end of httpd.conf:-

Include etc/extra/wcm.conf
To start and stop Apache, use the /opt/csw/apache2/sbin/apachectl script.

The configuration for mod_wcm.so could stored in the file /opt/csw/apache2/etc/extra/wcm.conf:

# Configuration for mod_wcm.so
<IfModule !wcm_module>
LoadModule wcm_module libexec/mod_wcm.so
</IfModule>
<Location /K8_CVS6 >
	Order allow,deny
	Allow from all
	# mod_filter and mod_deflate must be loaded
	AddOutputFilterByType deflate text/plain text/html text/css text/xml application/soap+xml
</Location>
<Location /K8_CVS6/KCMLTest >
	SetHandler kcml-soap
	KcmlSOAPServers localhost:790
</Location>

Module pathnames are relative to the installation directory, eg /opt/csw/apache2.