Re: Re: Setting <IfDefine> parameters from config file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the info noddl.

As the If crud is still around I think it's worth having the ability to define the parameters in custom configs. For example if I want to include default ssl.conf in my config without mucking with startup scripts or default ssl.conf itself per node, wouldn't it really make the life easy? also easy upgrades by just including the default config in your host specific configs. If I can define SSL in my custom config it will be really easy for me to enable SSL on required nodes only.

agreed?

On 3/12/07, Vincent Bray <noodlet@xxxxxxxxx> wrote:
On 13/03/07, Venkateswara Rao Parimi <parimiv@xxxxxxxxx> wrote:
> hello,
>
> Is this addressed or any workaround found to define a parameter within
> config files?

No, it's not addressed and like Dean points out in the message you
quoted, doesn't need to be in this way. The question asked here is
"can i define variables in the config file to be resolved at server
startup". The answer's no, though there are tools like m4 (or any
other template/macro solution, ruby irb works well) and modules like
mod_macro that can do this. The point being that as there are
perfectly decent text munging tools on unix environments there's no
point in apache duplicating effort.

And besides, a more interesting question is "can i define variables at
runtime (yes) and use them in my config (sometimes but not often
enough)".

> Thanks in advance for the responding!
>
> >Yes, Dean, you are allowed to say that. =)
> >
> > Brian
>
> >
> >On Tue, 1 Jun 1999, Dean Gaudet wrote:
> > Do I get to say "I told you so" here?
> >
> > (For those who've forgotten, I'm referring to my opinion that we shouldn't
> > have ever introduced this <If> crud, and should have told people to use a
>
> > preprocessor like M4, because this is exactly what they're intended to
> > support... inching bit by bit towards a full config language sucks.)
> >
> > Dean
> >
> > On Mon, 31 May 1999, David Harris wrote:
>
> >
> > >
> > > I'd like to be able to define parameters for <IfDefine> directives with
> a
> > > directive inside a configuration file.. not just the -D flag from the
> > > command line. I've looked around in the documentation and I don't see
> any
>
> > > way to do this. Am I missing it somewhere?
> > >
> > > If this feature is not in Apache, I think it would be a valuable one to
> add.
> > >
> > > (Just one note to anyone who implements this: RSE has already used the
>
> > > directive name "define" with some EAPI module that I got with mod_ssl.)
> > >
> > > - David Harris
> > > Principal Engineer, DRH Internet Services
> > >
> > >
>
> > >
> >
>


--
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux