Both of these scripts give back apache status ok:
Code:
# /etc/init.d/httpd fullstatus
# /usr/local/apache/bin/apachectl fullstatus
Apache does still create error_log for the traffic that is relayed to it.
But there was no record of me trying apache status from whm.
There was a record in access_log. But I think it only appeared after I edited httpd.conf to include ip of the domain trough which I access the whm.
This is what was in access_log:
Code:
127.0.0.1 - - [23/Jan/2010:19:46:24 +0100] "GET /whm-server-status HTTP/1.0" 200 15634
127.0.0.1 - - [23/Jan/2010:19:46:49 +0100] "GET /whm-server-status HTTP/1.0" 200 15714
Nginx isn't setup to use 127.0.0.1 as that creates issues with reporting of visitors ips. I've installed rpaf_module for apache. Maybe there is a problem with that somewhere as I couldn't really find enough documentation on how to do it so pretty much done trial and error until I got everything working fine and visitors ip correctly reported. Like in vbulletin's who's online list.
Here is what I added in httpd.conf. I'll edit out ips and domains.
Code:
LoadModule rpaf_module modules/mod_rpaf-2.0.so
RPAFenable On
# Enable reverse proxy add forward
RPAFproxy_ips 127.0.0.1 96.30.1x.xx 96.30.2x.xx
# which ips are forwarding requests to us
RPAFsethostname On
# let rpaf update vhost settings
# allows to have the same hostnames as in the "real"
# configuration for the forwarding Apache
RPAFheader X-Real-IP
Then in each virtual host section I've added:
Code:
<VirtualHost 96.30.1x.x:81>
RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1 96.30.1x.x
ServerName domain.com
.......
This is what part of the nginx vhost config looks like:
Code:
proxy_redirect http://www.domain.com:81 http://www.domain.com;
proxy_redirect http://domain.com:81 http://domain.com;
proxy_pass http://96.30.1x.x:81/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
I've tried adding another ip in httpd.conf like this:
Code:
<Location /whm-server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1 96.30.1x.x
</Location>
But that still didn't help get status page from whm. Although it seem to have helped get some record in access_log of apache as mentioned at the top of the post.