The directory $RRFW_HOME/web/ is reserved for CGI executables. However, there are no CGI executables in RRFW distribution.
The directory $RRFW_HOME/web/plain/ is the place for static HTML and images. The default CSS stylesheet files are installed in this directory. This directory must be configured with SetHandler default-handler directive.
The stylesheet files may be placed in $RRFW_HOME/web/plain/.
The default HTML templates that come with the RRFW distribution use the
global configuration variable $RRFW::Renderer::stylesheet, which is set
in rrfw-config.pl and may be overwritten in rrfw-siteconfig.pl.
All generated HTML and graphical images are cached twice: first on the server, and then in your browser. Thus, if you change somehow the HTML appearance of your RRFW installation, you need to clean both caches:
/usr/local/rrfw-0.1/bin/clearcache
This will clear the cache on the server. Then you may use your browser's ``reload'' button, or clear the whole browser cache.
The following variables may need to be set in your $RRFW_HOME/share/rrfw/rrfw-siteconfig.pl file:
$RRFW::Renderer::companyName$RRFW::Renderer::companyURL$RRFW::Renderer::rendererURL'/rrfw'. A URL that points to RRFW renderer.
$RRFW::Renderer::plainURL'/rrfw/plain'. A URL that points to RRFW plain files directory.
Normally CSS stylesheet files are resided there..
$RRFW::ApacheHandler::authorizeUsers1. When true, the web interface users are required to log in.
For more documentation, see <http://perl.apache.org/>.
The whole output generation is performed by the RRFW::ApacheHandler class.
However, you still need access to the plain directory where your CSS
resides. Typical Apache configuration would look like follows. Make sure
your configuration does not contain tab characters:
Alias /rrfw/plain "/usr/local/rrfw-0.1/web/plain"
PerlRequire "/usr/local/rrfw-0.1/share/rrfw/webmux.pl"
<Location /rrfw>
SetHandler perl-script
PerlHandler RRFW::ApacheHandler
</Location>
<Location /rrfw/plain/>
SetHandler default-handler
Options None
</Location>
The base URL would be in this case:
http://yourhost/rrfw/
Note: Apache 2.0 support in RRFW is currently in its early development stage.
Note: As of now, libapreq2 library is not released yet, and only the
development version is available. You have to download and install it
manually.
Earlier RRFW releases required Apache::ParseFormData module instead of
libapreq2, and were compatible with mod_perl versions prior to
1.99_15. Starting with RRFW 0.1.8, Apache::ParseFormData is no longer
required.
mod_perl version 1.99_15 or later is supported. To the moment,
libapreq2 version 2.04_03-dev is tested.
Make sure you use webmux2.pl and RRFW::Apache2Handler in your
configuration.
SetHandler modperl directive should give better performance
than SetHandler perl-script. Both Perl handlers work the same way
with RRFW.
Typical Apache 2.0 configuration follows:
Alias /rrfw/plain "/usr/local/rrfw-0.1/web/plain"
PerlRequire "/usr/local/rrfw-0.1/share/rrfw/webmux2.pl"
<Location /rrfw>
SetHandler modperl
PerlResponseHandler RRFW::Apache2Handler
</Location>
<Location /rrfw/plain/>
SetHandler default-handler
Options None
</Location>
The base URL would be in this case:
http://yourhost/rrfw/
The following CGI parameters are recognized by mod_perl handler:
/) is displayed.
view name for displaying the tree element.
If not specified, the defaul view is used.
zdump(8) for testing.
rrdtool (see
RRDTool manuals).
hidden parameter set to yes.
All other parameters whose name starts with capital letter, are passed to the HTML template as-is, and may be used for your custom purposes.
Copyright (c) 2002-2004 Stanislav Sinyagin <ssinyagin@yahoo.com>