Thursday, April 25, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 35739  / 2 Years ago, mon, june 27, 2022, 8:13:40

I am trying to install nagios but I would like to start the web interface on a port other than 80. I cant seem to find much info on how to do that. Any help is appreciated. Thanks


More From » network-monitoring

 Answers
4

I just worked on this, and figured it out. It's not ideal for some, but for me it works perfect. I just changed the default port apache2 looks at by :



Changing /etc/apache2/sites-available/default
First line ( Default ) :



 <VirtualHost *:80>


Changed to :



 <VirtualHost *:8085>  # Change 8085 to whatever port you want


then linking default in sites-enabled ( not sure if this site is needed, but it works )



 cd /etc/apache2/sites-enabled/
ln -s ../sites-available/default default


then cycle apache2 by :



 sudo service apache2 restart


Then test it out! This is what worked for me, hopefully it works for you.


[#32736] Wednesday, June 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
entmpy

Total Points: 52
Total Questions: 112
Total Answers: 113

Location: Marshall Islands
Member since Tue, Sep 21, 2021
3 Years ago
;