httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mandar Nandale <mandar.nand...@gmail.com>
Subject Re: [users@httpd] How to run httpd server on random port on every bootup
Date Tue, 26 Mar 2013 13:31:53 GMT
Basically i am running httpd server on embedded linux gateways and each
gateway running httpd on unique port which will change on every power cycle
and this port information is reported to common web server, for certain
reasons i want all my gateways to run httpd on different and random port
which will only known to web server. This random port is selected on
gateway on each bootup by my script and written to port.txt file from where
i am setting environment variable and running httpd on that port.


On Tue, Mar 26, 2013 at 6:00 PM, Akash Jain <akash.delhite@gmail.com> wrote:

> @Mandar : Like Pete said, can you shed some light on the use case ?
>
>
> On Tue, Mar 26, 2013 at 5:54 PM, Mandar Nandale <mandar.nandale@gmail.com>wrote:
>
>> Thanks Eric setting up environment variable worked for me
>>
>>
>>
>>
>> On Tue, Mar 26, 2013 at 5:33 PM, Eric Covener <covener@gmail.com> wrote:
>>
>>> On Tue, Mar 26, 2013 at 7:51 AM, Mandar Nandale
>>> <mandar.nandale@gmail.com> wrote:
>>> > Hi Guys,
>>> >
>>> >          I am using Apache httpd 2.4.3 server on my linux machine and
>>> my
>>> > requirement is to run server on some random port on every bootup which
>>> is
>>> > available in one text file to me . I have port.txt file under
>>> /home/mandar/
>>> > directory , i dont see any command line option to httpd to provide
>>> listen
>>> > port( is there any?) so only way is to edit httpd.conf file. What are
>>> the
>>> > ways i can achieve this.
>>> > Thank You,
>>> >
>>>
>>> You can add any directive on the command-line with -C or -c, or make
>>> your port.txt Include'able, or make it set an environment variable
>>> read by apachectl and use ${PORT} in your conf...
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>> For additional commands, e-mail: users-help@httpd.apache.org
>>>
>>>
>>
>>
>> --
>> Regards ,
>>
>> Mandar Nandale
>> Embedded Software Engineer
>> Mindteck India Ltd, Banglore
>>
>
>


-- 
Regards ,

Mandar Nandale
Embedded Software Engineer
Mindteck India Ltd, Banglore

Mime
View raw message