Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: davibou on February 03, 2007, 12:02:08 PM
-
LoadModule status_module modules/mod_status.so
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from localhost
</Location>
i need to set this for having graph stat working in cacti .
Can someone tell me how to do ?
-
found the trick :)) sorry
-
found the trick :)) sorry
If you find the fix, please follow up with the details so that others who ask the same question can benefit from your research. Thanks.
-
Assume thats this modification is for apache cacti statistics
Thread is there
http://forums.cacti.net/viewtopic.php?t=9861&highlight=apache
ok sorry here we go
create dir for custom template
mkdir -p /etc/e-smith/templates-custom/etc/httpd.conf
copy template we need
cp /etc/e-smith/templates/etc/httpdd.conf/20LoadModule80 /etc/e-smith/templates-custom/etc/httpd.conf/
cp /etc/e-smith/templates/etc/httpd.conf/80AddHandler00 /etc/e-smith/templates-custom/etc/httpd.conf/
cp /etc/e-smith/templates/etc/httpdd.conf/35ExternalPwAuth /etc/e-smith/templates-custom/etc/httpd.conf/
edit customs templates
vi /etc/e-smith/templates-custom/etc/httpd.conf/80AddHandler00
Add this and save
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
Allow from localhost
</Location>
vi /etc/e-smith/templates-custom/etc/httpd.conf/35ExternalPwAuth
Add this and save
ExtendedStatus On
vi /etc/e-smith/templates-custom/etc/httpd.conf/20LoadModule80
add this and save
LoadModule status_module modules/mod_status.so
Rebuild httpd template
expand-template /etc/httpd/conf/httpd.conf
Thats all
-
Thanks, it worked.
The path for the custom templates and the original templates has an extra sub-directory named conf, so it's actually
mkdir -p /etc/e-smith/templates-custom/etc/conf/httpd.conf
and afterwards you should reboot or restart the apache.
etc/rc.d/init.d/httpd-e-smith restart