You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jimmy Lantz <ji...@lusidor.com> on 2002/07/19 16:59:14 UTC
Dynamic httpd.conf?
Hi,
has any one used a Dynamic httpd.conf file, I've tried to use a CGI
on-the-fly generated one but, it didnt work.
It read the code instead of output ie. it didnt run the program.
Has anyone tried this/done this?
Is there a modification I can do?
/ TIA
Jim.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Dynamic httpd.conf?
Posted by Chris Knipe <sa...@savage.za.org>.
> > I use a combination of perl scripts with a mysql backend to
automatically
> > manage and reconfigure my apache servers....
> > Works wonderfully.
>
> Just curious -- are your scripts somewhat unrelated to apache and actually
> create httpd.conf (or included vhost-type) files etc? Or do you have
apache
> actually read it`s config from a script output? If so, how? I`m currently
> doing the former, but the latter would truly be much better in my opinion.
The scripts generate the physical config files (httpd.conf, clients.conf,
whatever.conf), and run httpd -t to verify the proper configuration of these
generated config files. If httpd -t was successful, apache is restarted.
--
me
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Dynamic httpd.conf?
Posted by "Timothy G. Wesemann" <ti...@voicenet.com>.
Chris,
> I use a combination of perl scripts with a mysql backend to automatically
> manage and reconfigure my apache servers....
> Works wonderfully.
Just curious -- are your scripts somewhat unrelated to apache and actually
create httpd.conf (or included vhost-type) files etc? Or do you have apache
actually read it`s config from a script output? If so, how? I`m currently
doing the former, but the latter would truly be much better in my opinion.
Thanks...
--
timuel
----- Original Message -----
From: "Chris Knipe" <sa...@savage.za.org>
To: <us...@httpd.apache.org>
Sent: Friday, July 19, 2002 9:56 PM
Subject: Re: Dynamic httpd.conf?
> I use a combination of perl scripts with a mysql backend to automatically
> manage and reconfigure my apache servers....
>
> Works wonderfully.
>
>
> ----- Original Message -----
> From: "Jeff Beard" <je...@cyberxape.com>
> To: <us...@httpd.apache.org>
> Sent: Saturday, July 20, 2002 3:49 AM
> Subject: Re: Dynamic httpd.conf?
>
>
> > You can use mod_vhost_alias to get a certain level of dynamism.
> >
> > You can do it with mod_perl and get even more:
> >
> > http://perl.apache.org/docs/1.0/guide/config.html#Usage
> >
> > --Jeff
> >
> > Jimmy Lantz wrote:
> > > Hi,
> > > has any one used a Dynamic httpd.conf file, I've tried to use a CGI
> > > on-the-fly generated one but, it didnt work.
> > > It read the code instead of output ie. it didnt run the program.
> > >
> > > Has anyone tried this/done this?
> > > Is there a modification I can do?
> > > / TIA
> > > Jim.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Dynamic httpd.conf?
Posted by Jeff Beard <je...@cyberxape.com>.
Hard to say what that person meant by "perl scripts" but the 2
possibilities are 1) a wrapper script or 2) he's using mod_perl. Either
way, httpd doesn't execute the program as in your example.
--Jeff
Jimmy Lantz wrote:
> How do you set this up?
> in the /usr/local/apache/bin/https -f /path/to/perlscript.pl ???
>
> My problem is that running the script like above, parses the file
> literally (reads the code instead of scripts output).
> /Thankful for replies
> Jim.
>
>
> At 03:56 2002-07-20 +0200, you wrote:
>
>> I use a combination of perl scripts with a mysql backend to automatically
>> manage and reconfigure my apache servers....
>>
>> Works wonderfully.
>>
>>
>> ----- Original Message -----
>> From: "Jeff Beard" <je...@cyberxape.com>
>> To: <us...@httpd.apache.org>
>> Sent: Saturday, July 20, 2002 3:49 AM
>> Subject: Re: Dynamic httpd.conf?
>>
>>
>> > You can use mod_vhost_alias to get a certain level of dynamism.
>> >
>> > You can do it with mod_perl and get even more:
>> >
>> > http://perl.apache.org/docs/1.0/guide/config.html#Usage
>> >
>> > --Jeff
>> >
>> > Jimmy Lantz wrote:
>> > > Hi,
>> > > has any one used a Dynamic httpd.conf file, I've tried to use a CGI
>> > > on-the-fly generated one but, it didnt work.
>> > > It read the code instead of output ie. it didnt run the program.
>> > >
>> > > Has anyone tried this/done this?
>> > > Is there a modification I can do?
>> > > / TIA
>> > > Jim.
>> > >
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> > > For additional commands, e-mail: users-help@httpd.apache.org
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> > For additional commands, e-mail: users-help@httpd.apache.org
>> >
>> >
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Dynamic httpd.conf?
Posted by Jimmy Lantz <ji...@lusidor.com>.
How do you set this up?
in the /usr/local/apache/bin/https -f /path/to/perlscript.pl ???
My problem is that running the script like above, parses the file literally
(reads the code instead of scripts output).
/Thankful for replies
Jim.
At 03:56 2002-07-20 +0200, you wrote:
>I use a combination of perl scripts with a mysql backend to automatically
>manage and reconfigure my apache servers....
>
>Works wonderfully.
>
>
>----- Original Message -----
>From: "Jeff Beard" <je...@cyberxape.com>
>To: <us...@httpd.apache.org>
>Sent: Saturday, July 20, 2002 3:49 AM
>Subject: Re: Dynamic httpd.conf?
>
>
> > You can use mod_vhost_alias to get a certain level of dynamism.
> >
> > You can do it with mod_perl and get even more:
> >
> > http://perl.apache.org/docs/1.0/guide/config.html#Usage
> >
> > --Jeff
> >
> > Jimmy Lantz wrote:
> > > Hi,
> > > has any one used a Dynamic httpd.conf file, I've tried to use a CGI
> > > on-the-fly generated one but, it didnt work.
> > > It read the code instead of output ie. it didnt run the program.
> > >
> > > Has anyone tried this/done this?
> > > Is there a modification I can do?
> > > / TIA
> > > Jim.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> >
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Dynamic httpd.conf?
Posted by Chris Knipe <sa...@savage.za.org>.
I use a combination of perl scripts with a mysql backend to automatically
manage and reconfigure my apache servers....
Works wonderfully.
----- Original Message -----
From: "Jeff Beard" <je...@cyberxape.com>
To: <us...@httpd.apache.org>
Sent: Saturday, July 20, 2002 3:49 AM
Subject: Re: Dynamic httpd.conf?
> You can use mod_vhost_alias to get a certain level of dynamism.
>
> You can do it with mod_perl and get even more:
>
> http://perl.apache.org/docs/1.0/guide/config.html#Usage
>
> --Jeff
>
> Jimmy Lantz wrote:
> > Hi,
> > has any one used a Dynamic httpd.conf file, I've tried to use a CGI
> > on-the-fly generated one but, it didnt work.
> > It read the code instead of output ie. it didnt run the program.
> >
> > Has anyone tried this/done this?
> > Is there a modification I can do?
> > / TIA
> > Jim.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Dynamic httpd.conf?
Posted by Jeff Beard <je...@cyberxape.com>.
You can use mod_vhost_alias to get a certain level of dynamism.
You can do it with mod_perl and get even more:
http://perl.apache.org/docs/1.0/guide/config.html#Usage
--Jeff
Jimmy Lantz wrote:
> Hi,
> has any one used a Dynamic httpd.conf file, I've tried to use a CGI
> on-the-fly generated one but, it didnt work.
> It read the code instead of output ie. it didnt run the program.
>
> Has anyone tried this/done this?
> Is there a modification I can do?
> / TIA
> Jim.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org