# EXAMPLE PUSHWEB CONFIGURATION FILE
# DO NOT SIMPLY INSTALL THIS FILE AS YOUR CONFIG FILE AND EXPECT IT TO
# WORK.  IT WILL NOT.  READ THE COMMENTS AND THE INSTALL FILE FIRST.
#
# generally, apache configuration commands like the following have the
# same meanings for pushweb as for absent.  generally speaking, you can
# use whatever normal apache configuration directives you like to, for
# example, exercise control over access to the pushweb server (using
# the apache access control directives), though some will, obviously,
# be meaningless as the pushweb server doesn't actually serve any
# documents itself (for example, the port and docroot configuration
# lines are required by apache, but meaningless for pushweb; a future
# version of pushweb will eliminate the necessity to specify these
# bogus configuration items)
ServerAdmin absent@yoyodyne.com
ServerName pushweb.yoyodyne.com
ServerType standalone
HostnameLookups on
ResourceConfig /dev/null
AccessConfig /dev/null
ServerRoot /usr/local/pushweb
DocumentRoot /usr/local/pushweb/htdocs
LogLevel debug
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog /usr/local/pushweb/logs/access_log combined
ErrorLog /usr/local/pushweb/logs/error_log
PidFile /usr/local/pushweb/logs/httpd.pid
ScoreBoardFile /usr/local/pushweb/logs/apache_status
#
# pick any port.  it isn't actually used, but apache needs to bind
# on it to function correctly.
Port 8368
#
# pushweb must run as someone who has access to the keys and so on.
# change this to someone appropriate.
User absent
group absent
#
# these control the behavior of the ssl session between pushweb
# and the remote client; obviously, you'll want to remove these
# if you're not using SSL.  see SSLeay documentation for what all
# of this stuff means.
SSLCacheServerPath /usr/local/pushweb/sbin/gcache
SSLSessionCacheTimeout 240
SSLCacheServerPort 8369
SSLVerifyClient 0
SSLCertificateFile    /usr/local/pushweb/priv/pushweb.cert
SSLCertificateKeyFile /usr/local/pushweb/priv/pushweb.privkey
SSLCACertificatePath	/usr/local/SSLeay/certs
SSLCACertificateFile	/usr/local/SSLeay/certs/thawte-test.pem
SSLLogFile	        /usr/local/pushweb/logs/ssl_log
#
# specify the host which is running the absent daemon
# unfortunately, this is redundant with the ABSENT_URL perlvar above.
# we'll fix that, we promise.
#
AbsentHost	absent.yoyodyne.com
#
# specify the file containing the MACing key.  this is different
# from, for example, user keys, and is a file containing an 8-byte
# value used to authenticate control messages between absent and
# pushweb.
KeyFile		/usr/local/pushweb/priv/MACkey
#
# the port on AbsentHost to which control messages will be sent
ControlPort	4431
#
# the port on AbsentHost which will receive new data connections.
PushwebPort	4500
#
# point this line at your installation of the AbsentProxyRewrite.pm file
PerlRequire     /usr/local/pushweb/lib/AbsentProxyRewrite.pm
#
# this line adds the pushweb rewrite handler for all requests
PerlTransHandler AbsentProxyRewrite
