On Mon, Mar 05, 2001 at 10:09:36PM +1000, David Boccabella
<[EMAIL PROTECTED]> wrote:
> Hi Dan..
> The information you have given me is great.. Only one problem..
>
> Where do I configure this into the e-smith server. I have been tearing my
> hair out trying to understand the config system. I have read the one page
> item on what it is and how to copy it.. but I have no further information
> than that..
That's what I get for writing my reply so late at night: I forget the
most important part. 8^(
e-smith uses a template-based system that gathers configuration
fragments together and builds the appropriate configuration file from
them.
e-smith configuration fragments reside in /etc/e-smith/templates. Their
location inside that hierarchy coincides with the location of the config
file they will be part of, once evaluated. So, httpd configuration file
fragments are located in:
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/
This is a directory. Look at the contents to see how things are put
together.
To create your own template fragments, create this directory:
/etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/
Then add a file to it, numbered not less than 30 (30AddModule30 is the
fragment that loads mod_proxy), and probably numbered much higher, that
contains the ProxyPass and ProxyPassReverse directives that you need.
To roll these into production, type:
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
then restart your httpd:
/etc/rc.d/init.d/httpd-e-smith restart
If all goes well, your e-smith server will now
be proxying the content you want. If not, check /var/log/httpd/error_log
for details on what happened.
--
Dan McGarry, e-smith, Inc.
http://www.e-smith.com/ http://www.e-smith.org/
[EMAIL PROTECTED] +1 613-368-4374