Skip to main content.
home | support | download

Back to List Archive

Re: SWISH-CONFIG

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Tue Jun 24 2003 - 17:28:27 GMT
On Tue, Jun 24, 2003 at 07:28:13AM -0700, David L Norris wrote:
> On Tue, 2003-06-24 at 09:11, V kirienko wrote:
> > ==============
> > PATH=/usr/local/home/
> > IndexDir PATH/http
> > ======================
> > I want to reuse config files on different environments
> > and PATH is different. 
> 
> You could use two config files for each index or pass parameters on the
> command line.
> 
> Example 1:
>   $ cat global
>   DefaultContents HTML2
> 
>   $ cat local
>   IndexDir /usr/local/home/http
>   IndexFile local.idx
> 
>   $ swish-e -c global local
> 
> 
> Example 2:
>   $ cat global
>   DefaultContents HTML2
> 
>   $ swish-e -c global -i /usr/local/home/http -f local.idx


And another way if you have common settings is to use an included file.

common_settings.conf:
---------------------

  MetaNames swishdocpath 
  DefaultContents HTML2


index_one.conf:
---------------

   IndexDir /home/one
   IncludeConfigFile common_settings.conf

index_two.conf:
---------------

   IndexDir /home/two
   IncludeConfigFile common_settings.conf



-- 
Bill Moseley
moseley@hank.org
Received on Tue Jun 24 17:28:31 2003