顯示具有 Apache 標籤的文章。 顯示所有文章
顯示具有 Apache 標籤的文章。 顯示所有文章

2012年3月8日 星期四

時常出現HTTP 403 Forbidden

Forbidden

You don't have permission to access xxx on this server.

通常發生在圖很多的頁面,兇手是Apache防DOS的mod_evasive
果然是被保護機制擋掉了...

2011年10月4日 星期二

Apache ab - benchmarking工具


-c concurrency 同時連線數
-n requests 次數
-t timelimit 測試時間(秒數)
-k HTTP Keep Alive (時間不長的話差別不大)


ex:
ab -c 20 -t 30
http://httpd.apache.org/docs/2.0/programs/ab.html

IE下載docx會變zip檔

因為apache不認得,
可以改httpd.conf
或.htaccess加上
AddType application/vnd.openxmlformats .docx .pptx .xlsx .odp