Page 1 of 1

Is it bad Apache listen :80

Posted: Tue Nov 25, 2014 9:52 pm
by sim
Hello,

I always use
service httpd fullstatus
for httpd monitoring.

In case of vesta, it won't work because apache is not listening on default port.

Can i make apache listen on port 80,

in status.conf:
Listen 127.0.0.1:8081
Listen 127.0.0.1:80
Will it give me problems with the nginx?

Thanks!

Re: Is it bad Apache listen :80

Posted: Wed Nov 26, 2014 7:47 am
by Milka
You can't have both apache and nginx listening to the same port.
Use netstat -anp | grep httpd to see what ports apache is listening to.

Re: Is it bad Apache listen :80

Posted: Wed Nov 26, 2014 10:07 am
by sim
Thanks, Milka.

I know which ports apache is listening. My problem was that

Code: Select all

service httpd fullstatus
Won't work with custom Apache port.

Anyway i found better solution to monitor Web server- apachetop

Code: Select all

yum install apachetop

apachetop $(find /var/log/httpd \( -name  \*.log -o -name \*_log \) -print | sed 's/^/-f '/)

Re: Is it bad Apache listen :80

Posted: Wed Nov 26, 2014 10:17 am
by Milka
If monitoring is important to you, why not monitor more than just apache and use Nagios (or any other good monitoring solution)?

Re: Is it bad Apache listen :80

Posted: Wed Nov 26, 2014 10:19 am
by sim
I monitor all of the services. Apachetop just allows to see what user is getting most traffic realtime (almost).