openbsd-ports/www/jakarta-tomcat/v5/files
naddy 9c6849964a Import Jakarta Tomcat 5.0.28; submitted by Kurt Miller <truk@apache.org>.
Tomcat 5 is a Servlet/JSP container that implements the Servlet 2.4
and JavaServer Pages 2.0 specifications from the Java Community 
Process.  Tomcat can be run as a standalone web server with 
Servlet and JSP support, or using Apache HTTP Server as its web 
server via the mod_jk Apache module (the www/mod_jk package).
2004-11-04 21:46:04 +00:00
..
README.OpenBSD Import Jakarta Tomcat 5.0.28; submitted by Kurt Miller <truk@apache.org>. 2004-11-04 21:46:04 +00:00
tomcat.rc Import Jakarta Tomcat 5.0.28; submitted by Kurt Miller <truk@apache.org>. 2004-11-04 21:46:04 +00:00

$OpenBSD: README.OpenBSD,v 1.1.1.1 2004/11/04 21:46:04 naddy Exp $

Jakarta Tomcat on OpenBSD uses `%%SYSCONFDIR%%/tomcat' for its configuration files.

With the following command tomcat is started as user `_tomcat':
$ sudo -u _tomcat %%PREFIX%%/%%PKGNAME%%/bin/startup.sh

As `sudo' doesn't pass environment variables, you should define
environment variables in `%%SYSCONFDIR%%/tomcat/tomcat.rc'.

If you want Jakarta Tomcat to serve on privileged ports (e.g. 80),
then either edit `%%SYSCONFDIR%%/tomcat/server.xml' and change the Connector port
to 80, or even more secure: redirect all tcp traffic to port 80
to tomcat's default listener port 8080 using a pf.conf(5) rule like:

   rdr on $NIC proto tcp from any to any port 80 -> 127.0.0.1 port 8080

`$CATALINA_BASE' (formerly `$TOMCAT_HOME') is `/var/tomcat'.