ใครเคยลง module mod_qos บ้างครับ

ผมลงแบบนี้

โหลดมาแล้วเก็บไว้ที่ /backup/download แล้วแตก tar ได้

mod_qos-8.18

ทำการ build และ

ต้องเปิด server-status ก่อนคับ

เปิดตรงไหนครับ พอดีใช้ apache top มันก็ใช้ได้นะ

apache-top -u http://localhost/server-status

แปลว่า server-status เปิดแล้วรึเปล่า

แล้วสงสัยนิดนึงทำไมพอลง mod_qos ทำไมมันใช้คำสั่ง apache top ไม่ได้อ่ะครับ

เปิดใน httpd-info.conf

ในตัว httpd-info.conf

<Location /server-status>

ลอง

<Location /server-status>

มันก็ยัง error เหมือนเดิมครับ ที่ apache error log มันขึ้นว่า

mod_qos(045): access denied, invalid request line: can’t parse uri

ผมไม่แน่ใจว่าเป็นที่ server-status รึเปล่าเพราะถ้าไม่ load module mod_qos เรียก server-status ก็ใช้ได้ปรกติครับ

แก้ยังไงดีครับเนี่ยไม่มีใครลงตัวนี้นอกจากคุณ hack3rb43
เลยเหรอครับ งั้นถ้าไม่รบกวนเกินไปว่างๆ จะ msn ไปปรึกษานะครับ

ตั้งค่าถูกต้องหรือเปล่าครับ ขอดูไฟล์ /etc/httpd/conf/qos.conf หน่อย
หรือลองลบ Include “/etc/httpd/conf/qos.conf” ออกแล้ว restart apache ดูครับ

แก้ไข:
ผมไม่แน่ในเป็นเพราะ Include “/etc/httpd/conf/qos.conf” หรือเปล่า ลองเปลี่ยนเป็น Include /etc/httpd/conf/qos.conf ดูครับ

ผมเคยติดตั้งนานแล้ว เท่าที่จำได้คือทำตามเอกสารที่เขาให้มาก็ใช้งานได้ปกติ ไฟล์ /etc/httpd/conf/extra/httpd-info.conf

/etc/httpd/conf/qos.conf ตามนี้เลยครับ

## QoS Settings
<IfModule mod_qos.c>
# handles connections from up to 100000 different IPs
QS_ClientEntries 100000
# will allow only 20 connections per IP

QS_SrvMaxConnPerIP 20

# maximum number of active TCP connections is limited to 256

MaxClients 256

# disables keep-alive when 70% of the TCP connections are occupied:

QS_SrvMaxConnClose 180

# minimum request/response speed (deny slow clients blocking the server,
#ie. slowloris keeping connections open without requesting anything):

#QS_SrvMinDataRate 150 1200

# and limit request header and body (carefull, that limits uploads and
#post requests too):

# LimitRequestFields 30

QS_LimitRequestBody 102400
<Location /qos>
SetHandler qos-viewer
</Location>
</IfModule>

แต่ไฟล์ config ที่ include เข้ามาผมเอาออกแล้วแต่ยัง error อยู่ครับ