[opencms-dev] mod_jk (was: instructions for proxying ...)

David Evans dsevans at berndtgroup.net
Fri Mar 26 13:34:01 CET 2004


Thanks alot, thats helpful. What i'm really trying to do is set up
opencms inside a directory that is not in $CATALINA_HOME/webapps,
using the <host> and <context> tags of server.xml

but this will be a good start.

thanks again.

dave

On Fri, 2004-03-26 at 07:18, Martin Kuba wrote:
> David Evans wrote:
> > Hello,
> > 
> > Martin, could you please post the relevent bits of your server.xml and
> > httpd.conf and web.xml files?  I'm about to start an installation that
> > needs to use mod_jk.
> > 
> > thanks
> 
> Hi, I wanted to use SSL for securing administration.
> Here are the config files:
> 
> ------------/etc/httpd/workers.properties------------------
> worker.list=cms_t4
> worker.cms_t4.type=ajp13
> worker.cms_t4.port=8009
> worker.cms_t4.host=localhost
> ------------------------------------------------------------
> 
> ------------/etc/httpd/httpd.conf---------------------------
> ...
> LoadModule      jk_module               libexec/mod_jk-1.3.eapi.so
> JkWorkersFile "/etc/httpd/workers.properties"
> JkLogFile "/var/log/httpd/mod_jk.log"
> JkLogLevel info
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> ...
> <VirtualHost 147.251.3.63:80>
>     DocumentRoot /export/www/
>     ServerName loni.ics.muni.cz
>     JkMount /opencms/* cms_t4
> </VirtualHost>
> <VirtualHost 147.251.3.63:443>
>     DocumentRoot /export/www/
>     ServerName loni.ics.muni.cz
>     JkMount /opencms/* cms_t4
>     SSLEngine on
>     SSLCipherSuite 
> ALL:!ADH:!EXP56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
>     SSLCertificateFile /etc/httpd/ssl/mycert.cert
>     SSLCertificateKeyFile /etc/httpd/ssl/mykey.key
>     SSLCertificateChainFile /etc/httpd/ssl/myca.pem
> </VirtualHost>
> ------------------------------------------------------------
> 
> ---~/tomcat-4.1.30/webapps/opencms/WEB-INF/config/opencms.properties---
> staticexport.path=/export/www
> url_prefix_export=
> url_prefix_http=/${WEB_APP_NAME}/opencms
> url_prefix_https=https://loni.ics.muni.cz/${WEB_APP_NAME}/opencms
> url_prefix_servername=
> -------------------------------------------------------------
> 
> No changes in web.xml are needed, in server.xml just
> make sure that the section
> <!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
> <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>             port="8009"
> ...
> 
> which is there by default is really uncommented and the port number
> matches the port specified in workers.properties.
> 
> Martin




More information about the opencms-dev mailing list