We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
[fixed] httpd and nginx graphs broken
-
- Posts: 31
- Joined: Wed Oct 18, 2017 6:34 am
[fixed] httpd and nginx graphs broken
Hello
I have just noticed that one of our Vesta VPS (OVH/CentOS7/CloudFlare) stopped showing httpd and nginx graphs (another graphs works ok) yesterday.
I was looking for solution, but no luck. Any hints, how can I debug/fix that?
Thank you in advance,
Krzysztof
I have just noticed that one of our Vesta VPS (OVH/CentOS7/CloudFlare) stopped showing httpd and nginx graphs (another graphs works ok) yesterday.
I was looking for solution, but no luck. Any hints, how can I debug/fix that?
Thank you in advance,
Krzysztof
Last edited by websystems on Wed Oct 18, 2017 7:35 am, edited 1 time in total.
-
- Posts: 31
- Joined: Wed Oct 18, 2017 6:34 am
Re: httpd and nginx graphs broken
Ok, one hour later after some debugging...
Problem: CloudFlare pointed domain to different IP, so /usr/local/vesta/bin/v-update-sys-rrd-nginx could not obtain data from localhost at port 8081 as it was blocked
Fix: /etc/hosts - remove # from line:
127.0.0.1 localhost
Problem: CloudFlare pointed domain to different IP, so /usr/local/vesta/bin/v-update-sys-rrd-nginx could not obtain data from localhost at port 8081 as it was blocked
Fix: /etc/hosts - remove # from line:
127.0.0.1 localhost
-
- Posts: 31
- Joined: Wed Oct 18, 2017 6:34 am
Re: [fixed] httpd and nginx graphs broken
2 days later the problem is back. But now only httpd graphs are broken. Any advice where shall I start the investigation now?
-
- Posts: 31
- Joined: Wed Oct 18, 2017 6:34 am
Re: [fixed] httpd and nginx graphs broken
Ok, problem found:
/etc/httpd/conf.d/status.conf
Listen 127.0.0.1:8081
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from *allowed IPs goes here* 127.0.0.1 <-- you can not remove localhost IP from this line, adding it back solved the problem
</Location>
service httpd restart and voila :)
/etc/httpd/conf.d/status.conf
Listen 127.0.0.1:8081
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from *allowed IPs goes here* 127.0.0.1 <-- you can not remove localhost IP from this line, adding it back solved the problem
</Location>
service httpd restart and voila :)