Centos

如何在共享伺服器上找到生成 httpd 請求的站點

  • June 20, 2016

我有一個共享伺服器,該伺服器的 Wordpress 網站遭到入侵。我清理了伺服器上的所有 wordpress 站點,一切似乎都很好。

當我今天檢查時,我注意到 htop 中有大量的 httpd 請求。

**問題:**有沒有一種簡單的方法可以找到伺服器上生成這些請求的站點?

美分 6.5

(以下假設為 Apache httpd。)如果您配置了處理程序,您可以在 處查看狀態資訊http://your.host/server-status,其中包括每個執行緒/程序處理的最後一個請求。來自http://www.apache.org/server-status的範例輸出片段:

Srv PID Acc M   CPU SS  Req Conn    Child   Slot    Client  VHost   Request
0-3 14945   0/1516/44613    _   388.52  6   0   0.0 198.85  4925.35 200.23.10.34        
0-3 14945   0/1487/45982    _   388.22  9   0   0.0 36.54   5136.00 68.84.15.163        
0-3 14945   0/1499/47317    _   388.55  5   0   0.0 55.79   4677.07 190.245.218.189 www.apache.org:80   GET /proper/commons-bsf/images/external-classic.png HTTP/1.1
0-3 14945   0/1488/44601    _   388.58  0   0   0.0 51.48   5345.17 14.139.185.82       
0-3 14945   0/1245/47133    _   388.41  2   0   0.0 39.04   4884.93 95.91.249.186       
0-3 14945   0/1339/46175    R   388.07  0   1   0.0 220.24  4794.02 14.139.185.82       
0-3 14945   0/1474/47807    _   388.41  3   0   0.0 36.18   4933.90 95.91.249.186       
0-3 14945   0/1479/48044    _   388.45  9   0   0.0 37.67   5960.46 68.84.15.163    www.openoffice.org:80   GET /projects/update/aoo341/check.Update HTTP/1.1

Srv Child Server number - generation
PID OS process ID
Acc Number of accesses this connection / this child / this slot
M   Mode of operation
CPU CPU usage, number of seconds
SS  Seconds since beginning of most recent request
Req Milliseconds required to process most recent request
Conn    Kilobytes transferred this connection
Child   Megabytes transferred this child
Slot    Total megabytes transferred this slot

引用自:https://unix.stackexchange.com/questions/147854