การเปิด Apache Extended Status

ท่านสามารถเปิดการทำงานของ Apache Extended Status เพื่อดูสถานะการทำงานของ Apache ได้โดยการ SSH เข้าไปยังเซิฟเวอร์ และทำการแก้ไขไฟล์ดังต่อไปนี้

nano /etc/httpd/conf/extra/httpd-info.conf

จากนั้นแก้ไขข้อความตรงที่เป็นสีชมพู

<Location /server-status>
SetHandler server-status
#     Order deny,allow
#     Deny from all
#     Allow from .example.com
</Location>

ExtendedStatus On

ตรงข้อความ server-status ควรเปลี่ยนเป็นคำหรือวลี ซึ่งยากแก่การคาดเดา เพื่อมิให้ผู้อื่นสามารถเปิดดู Extended Status ของท่านได้

การเรียกดู Extended Status สามารถทำได้โดย http://ip/server-status

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

คำสั่งขั้นสูง LINUX และ UNIX (ขั้นสูง)

คำสั่งขั้นสูง LINUX และ UNIX 1.1 คำสั่ง ls : ใช้แสดงรายชื่อแฟ้มทั้งหมดใน home directory...

การลบ Mail ทั้งหมดออกจาก Queue ใน Exim

ใช้คำสั่ง exim -bp | awk '/^ *[0-9]+[mhd]/{print "exim -Mrm " $3}' | bash...

Changing the maximum upload size in php.ini

Error text: file_name" has failed to upload due to an error - This file exceeds the maximum...

การติดตั้ง โปรแกรม MRTG บน CentOS

ติดตั้ง MRTG บน CentOS ที่ใช้ Directadmin เป็น CP MRTG คือโปรแกรมทีทำงานอยู่บนโปรโตคอล SNMP...

Open port Iptables Firewall on CentOS 6

Open port Iptables Firewall on CentOS 6 What ports do I need to open in my firewall?...