Re: [users@httpd] How to run httpd server on random port on every bootup

2013-03-27 Thread Phil White
Hi Mandar, I think everyone is intrigued about your certain reasons - mainly because I can run an automated port scan and discover what port the httpd is running on quicker than you can reboot a machine. You really need to be investigating other ways to protect each gateway... Firewall _AND_

[users@httpd] How to run httpd server on random port on every bootup

2013-03-26 Thread Mandar Nandale
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

Re: [users@httpd] How to run httpd server on random port on every bootup

2013-03-26 Thread Eric Covener
On Tue, Mar 26, 2013 at 7:51 AM, Mandar Nandale mandar.nand...@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

Re: [users@httpd] How to run httpd server on random port on every bootup

2013-03-26 Thread Pete Houston
Yes, there is. You can use -C to specify the default port. See http://httpd.apache.org/docs/2.4/programs/httpd.html#options and http://httpd.apache.org/docs/2.4/mod/mpm_common.html#listen - just make sure you don't over-ride it in your httpd.conf. However, I cannot think of any use case for this.

Re: [users@httpd] How to run httpd server on random port on every bootup

2013-03-26 Thread Mandar Nandale
Thanks Eric setting up environment variable worked for me On Tue, Mar 26, 2013 at 5:33 PM, Eric Covener cove...@gmail.com wrote: On Tue, Mar 26, 2013 at 7:51 AM, Mandar Nandale mandar.nand...@gmail.com wrote: Hi Guys, I am using Apache httpd 2.4.3 server on my linux machine

Re: [users@httpd] How to run httpd server on random port on every bootup

2013-03-26 Thread Akash Jain
@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.nand...@gmail.comwrote: Thanks Eric setting up environment variable worked for me On Tue, Mar 26, 2013 at 5:33 PM, Eric Covener cove...@gmail.com wrote: On Tue, Mar

Re: [users@httpd] How to run httpd server on random port on every bootup

2013-03-26 Thread Mandar Nandale
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