Koozali.org: home of the SME Server

How to set that in httpd.conf

Offline davibou

  • ****
  • 79
  • +0/-0
How to set that in httpd.conf
« 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 ?

Offline davibou

  • ****
  • 79
  • +0/-0
How to set that in httpd.conf
« Reply #1 on: February 03, 2007, 12:17:16 PM »
found the trick :)) sorry

Offline gordonr

  • *
  • 646
  • +0/-0
    • http://www.smeserver.com.au/
How to set that in httpd.conf
« Reply #2 on: February 04, 2007, 10:36:10 AM »
Quote from: "davibou"
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.
............

Offline davibou

  • ****
  • 79
  • +0/-0
How to set that in httpd.conf
« Reply #3 on: February 05, 2007, 06:54:26 PM »
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  

Code: [Select]

mkdir -p /etc/e-smith/templates-custom/etc/httpd.conf


copy template we need

Code: [Select]

cp /etc/e-smith/templates/etc/httpdd.conf/20LoadModule80 /etc/e-smith/templates-custom/etc/httpd.conf/


Code: [Select]

cp /etc/e-smith/templates/etc/httpd.conf/80AddHandler00 /etc/e-smith/templates-custom/etc/httpd.conf/


Code: [Select]

cp /etc/e-smith/templates/etc/httpdd.conf/35ExternalPwAuth /etc/e-smith/templates-custom/etc/httpd.conf/



edit customs templates
Code: [Select]

vi /etc/e-smith/templates-custom/etc/httpd.conf/80AddHandler00


Add this and save
Code: [Select]

<Location /server-status>
          SetHandler server-status
          Order deny,allow
          Deny from all
          Allow from 127.0.0.1
          Allow from localhost
         </Location>


Code: [Select]

vi /etc/e-smith/templates-custom/etc/httpd.conf/35ExternalPwAuth


Add this and save
Code: [Select]

ExtendedStatus On



Code: [Select]

vi /etc/e-smith/templates-custom/etc/httpd.conf/20LoadModule80


add this and save
Code: [Select]

LoadModule status_module         modules/mod_status.so


Rebuild httpd template
Code: [Select]

expand-template /etc/httpd/conf/httpd.conf


Thats all

Offline Curly

  • ****
  • 114
  • +0/-0
How to set that in httpd.conf
« Reply #4 on: April 22, 2007, 03:33:53 PM »
Thanks, it worked.

The path for the custom templates and the original templates has an extra sub-directory named conf, so it's actually
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/conf/httpd.conf
and afterwards you should reboot or restart the apache.
Code: [Select]
etc/rc.d/init.d/httpd-e-smith restart
.......................................