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,