Results 1 to 12 of 12

Thread: need command

  1. #1
    Join Date
    Oct 2007
    Posts
    95

    need command

    hello...


    i need command that grep connection in one site in my server plz

    and thanks for help

  2. #2
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    What sort of connection are you referring to? Connection to the port 80?
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  3. #3
    Join Date
    Oct 2007
    Posts
    95
    thanks david for replay

    i have site in my server make load in apache cause he up clips and songes and others download all that from the site i need to know the site make that by command in ssh from month go i have that command but now i don't found it

    i need the command that by it know the site that user download from it

    i hope to understand me

  4. #4
    Join Date
    Feb 2008
    Posts
    38
    netstat -an
    if I have understood you correctly
    Smart Power Asia - Electronics - Mobile Electronics Store. Sell i-mobile, Oppo, Samsung. Worldwide shipping.

  5. #5
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    The below give the IPs that are making the httpd connections and the number of connections.

    netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  6. #6
    Join Date
    Oct 2007
    Posts
    95
    thanks all for help

    david u but command that shown who's connected now and download from server but i don't know the site that all that users download from

    i need command that by it know the site that all users download from it

  7. #7
    Join Date
    Dec 2002
    Location
    chica go go
    Posts
    11,858
    How did you come to realize you needed to know this?

    Look at your access log, or enable apache's server status module and look there.

  8. #8
    Join Date
    Oct 2007
    Posts
    95
    on log don't found the site that download i need the command that byt it can know the site that have source and downloaded from it

  9. #9
    Join Date
    Dec 2006
    Posts
    477
    sounds like you log isn't setup correctly and it is only logging the url downloaded and not the site it was downloaded from. If you haven't configured apache to log this, and the file itself no longer exists on your server, you won't be able to find this information.

  10. #10
    Join Date
    Oct 2004
    Location
    Kerala, India
    Posts
    4,750
    One think you can do is turn on hostnamelooksup in apache conf. But it will slow down the apache a bit.
    David | www.cliffsupport.com
    Affordable Server Management Solutions sales AT cliffsupport DOT com
    CliffWebManager | Access WHM from iPhone and Android

  11. #11
    Join Date
    Feb 2004
    Location
    New Zealand
    Posts
    1,202
    netstat -anp

    or apache stats.
    DigitalGoods.info
    FREE Shared, Mega Resellers + Dedicated Servers

  12. #12
    if you specify %U and %q in the apache log , the logs will contain the url path and query string, from this, you can easily find the downloaded site.

    use some simple perl script for that
    Web Hosting Gurus

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •