httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Heizer <heiz...@llnl.gov>
Subject Re: [users@httpd] Self Contained Apache Server
Date Fri, 11 Apr 2003 16:37:55 GMT

On Friday, April 11, 2003, at 12:42 AM, Boyle Owen wrote:

>> -----Original Message-----
>> From: Charles Heizer [mailto:heizer1@llnl.gov]
>>
>> Hello,
>> I thought I would ask before I put a lot of time in to this ... Is it
>> possible to build Apache 1.x as a self contained application? Meaning
>> I want to include all of the directives and options from with in the
>> httpd.conf file and make it so Apache does not and can not read a
>> conf file?
>
> Interesting idea... For an embedded apache?

Yes ... I'm still not sure if I'll use apache or build my own httpd 
server, but I thought this might be the case, I was kinda hopping I 
could just pass in a option with a config file and have it make all of 
the configurations; hard coded.

Thanks for the info,

- Charles Heizer



>
> One way would be to edit the source code, replacing all the steps where
> it reads values from the config file with hard-coded assignments. The
> complexity of this would be proportional to the complexity of your
> configuration. Remember that apache takes a default for most directives
> so a simple config might require only a few directives (DocumentRoot,
> ServerName etc.)
>
> Most of the directives are assigned in src/main/http_core.c and for the
> rest, grep will soon sniff them out.
>
> Another way (I'm not even sure if this is possible - it's certainly
> architecture dependent!) might be to core dump the running program 
> (i.e.
> after it has loaded its config) and then restart the core (probably 
> have
> to be in a debugger). But that's way out of my league...
>
> Rgds,
> Owen Boyle
> Disclaimer: Any disclaimer attached to this message may be ignored.
>
>> If so, does anyone have any docs on doing this?
>>
>> Thanks,
>>
>> - Charles Heizer
>>
>> ---------------------------------------------------------------------
>> 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@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>
> This message is for the named person's use only. It may contain
> confidential, proprietary or legally privileged information. No
> confidentiality or privilege is waived or lost by any mistransmission.
> If you receive this message in error, please notify the sender urgently
> and then immediately delete the message and any copies of it from your
> system. Please also immediately destroy any hardcopies of the message.
> You must not, directly or indirectly, use, disclose, distribute, print,
> or copy any part of this message if you are not the intended recipient.
> The sender's company reserves the right to monitor all e-mail
> communications through their networks. Any views expressed in this
> message are those of the individual sender, except where the message
> states otherwise and the sender is authorised to state them to be the
> views of the sender's company.
>
>
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message