[Xapian-devel] Omega changes
Arjen van der Meijden
arjen at glas.its.tudelft.nl
Fri Dec 24 11:24:14 GMT 2004
On 21-12-2004 14:19, Sam Liddicott wrote:
> Olly Betts wrote:
>
>> On Fri, Dec 17, 2004 at 02:15:34PM +0000, Richard Boulton wrote:
>>
>>
>>> I propose changing the configuration file search to read an environment
>>> variable "OMEGA_CONFIG_FILE". If this is set, the configuration will be
>>> read from the file whose path is in the environment variable. If this
>>> is not set, the configuration will be read from $sysconfdir/omega.conf
>>> (where $sysconfdir defaults to /etc, but can be set by parameters
>>> to ./configure). If the configuration file specified cannot be read,
>>> default values will be used.
>>>
>>
>>
>> I'm not totally sold on this.
>>
>> Setting an environmental variable (at least for apache) requires admin
>> access to the webserver configuration, or (assuming it's configured to
>> allow you to) the creation of a .htaccess file, or some sort of wrapper
>> around the CGI (e.g. a shell script which exports the variable and execs
>> omega). If .htaccess exists, the server has to read it for anything
>> served from that directory, which is potentially quite an overhead.
>>
>>
> I agree with Olly.
> I have installations dependant on the config file being read from the
> current directory.
As a bit of a side-step. I think those that use omega as a middle-end,
instead of a front-end application will be very pleased with a
commandline switch to specify the omega.conf-location. (some
--conf=-like parameter)
We would be pleased at least. And the creators of the React forum
software, who have incorporated omega as the search-backend, as well.
It allows for much easier process opening, since you won't have to toy
around with annoying not-entirely-or-clearly-working cwd's and stuff. If
the cgi-environment allows that command line switch to be set as well,
it'd also solve all your problems ;) But I don't know enough about cgi
to know whether that is possible.
Of course, the command-line switch should not be allowed to be set
through the request-parameters.
Best regards,
Arjen
More information about the Xapian-devel
mailing list