Welcome to Centmin Mod Community
Become a Member

Beta Branch Centmin Mod Nginx live vhost traffic statistics preview & discussion

Discussion in 'Beta release code' started by eva2000, May 28, 2015.

  1. Mask

    Mask Active Member

    108
    31
    28
    Nov 10, 2014
    Ratings:
    +37
    Local Time:
    6:15 PM
    Nginx 1.9.1
    MariaDB 10.0.19
    eva2000
    How can I make it work with HTTPS??
    I installed phpMyAdmin on a server a while back and setup SSL for it (i.e. used a paid SSL)
    not sure what I changed at the time but my name.server.com started redirecting to https://name.server.com

    It was not an issue at the time but now when I upgraded that server to new beta3 version.
    name.server.com/vhost_status is redirecting to https://name.server.com/vhost_status which is returning 404 error.


    I would prefer to make it work with Https (if it's possible).
     
  2. Mask

    Mask Active Member

    108
    31
    28
    Nov 10, 2014
    Ratings:
    +37
    Local Time:
    6:15 PM
    Nginx 1.9.1
    MariaDB 10.0.19
    Ok there is something going on. After install phpMyAdmin addon (which uses SSL to connect) I can not access
    host.domain.com/vhost_status
    or
    host.domain.com/nginx-status
    Looks like all host.domain.com is now going to https://host.domain.com and I can't seem to find why.
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,548
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    11:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    might be related to HSTS header in /usr/local/nginx/conf/conf.d/phpmyadmin_ssl.conf try change it value to 0 expiry time and clear browser caches and restart browser

    Code:
    add_header Strict-Transport-Security "max-age=31536000; includeSubdomains;";
    to
    Code:
    add_header Strict-Transport-Security "max-age=0; includeSubdomains;";
    made fix to phpmyadmin github repo code at update HSTS to 0 max-age ยท centminmod/phpmyadmin@8390d23 ยท GitHub
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,548
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    11:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    looking very good on latest .08 beta03 :D

    vhost-stats-phppools_00.png
     
  5. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    6:45 PM
    mine is only showing Nginx Vhost Traffic Status (n) no data, am I missin' something?

    also:
    does
    Code:
    /usr/local/nginx/conf/htpasswd.sh create /usr/local/nginx/conf/vts_htpasswd USERNAME PASSWORD
    means
    Code:
    /usr/local/nginx/conf/htpasswd.sh create /usr/local/nginx/conf/vts_htpasswd mydesiredUN mydesiredpw
    ?
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,548
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    11:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    do you have any traffic /visitors to your setup domains on server ?

    and yes it means desired username/password
     
  7. quicksalad

    quicksalad Member

    228
    13
    18
    May 31, 2015
    Ratings:
    +20
    Local Time:
    6:45 PM
    maybe 1 or 2 unique visit per day :yawn: plus me :) would that be enough to appear vhost stats?
     
  8. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    9:15 PM
    Mainline
    10.2
    With this I can view real time url's, status, being visited?
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,548
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    11:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    it's just summary stats not detailed
     
  10. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    9:15 PM
    Mainline
    10.2
    No other modules that can replicate NGinx Plus Dashboard? :)
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,548
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    11:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    none that i know of.. if you find them let me know :D
     
  12. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    9:15 PM
    Mainline
    10.2
  13. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    9:15 PM
    Mainline
    10.2
  14. eva2000

    eva2000 Administrator Staff Member

    54,548
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    11:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  15. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    3:15 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    NP Dashboard

    Damn this is so cool !!!!!

    But why we can't just copy the design of it and use it on the non paid Nginx by editing the vhost_status page ? :)

    Where is the path of this vhost_status file?
     
    Last edited: Sep 18, 2015
  16. eva2000

    eva2000 Administrator Staff Member

    54,548
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    11:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    pretty sure it's more than cosmetic html changes under the hood, you can read early posts in this thread for paths and my attempts at changing colors etc
     
  17. eva2000

    eva2000 Administrator Staff Member

    54,548
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    11:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    nginx-module-vts still working well in latest 123.09beta01 :)

    upload_2016-6-21_4-5-52.png

    in json format from url /vhost_status/format/json
    Code (Text):
    {"nginxVersion":"1.11.1","loadMsec":1466445479445,"nowMsec":1466447103863,"connections":{"active":1,"reading":0,"writing":1,"waiting":0,"accepted":113,"handled":113,"requests":1391},"serverZones":{"centos7.localdomain":{"requestCounter":1390,"inBytes":469929,"outBytes":1502253,"responses":{"1xx":0,"2xx":1372,"3xx":0,"4xx":18,"5xx":0,"miss":0,"bypass":0,"expired":0,"stale":0,"updating":0,"revalidated":0,"hit":0,"scarce":0},"overCounts":{"maxIntegerSize":18446744073709551615,"requestCounter":0,"inBytes":0,"outBytes":0,"1xx":0,"2xx":0,"3xx":0,"4xx":0,"5xx":0,"miss":0,"bypass":0,"expired":0,"stale":0,"updating":0,"revalidated":0,"hit":0,"scarce":0}},"*":{"requestCounter":1390,"inBytes":469929,"outBytes":1502253,"responses":{"1xx":0,"2xx":1372,"3xx":0,"4xx":18,"5xx":0,"miss":0,"bypass":0,"expired":0,"stale":0,"updating":0,"revalidated":0,"hit":0,"scarce":0},"overCounts":{"maxIntegerSize":18446744073709551615,"requestCounter":0,"inBytes":0,"outBytes":0,"1xx":0,"2xx":0,"3xx":0,"4xx":0,"5xx":0,"miss":0,"bypass":0,"expired":0,"stale":0,"updating":0,"revalidated":0,"hit":0,"scarce":0}}},"upstreamZones":{"::nogroups":[{"server":"127.0.0.1:9000","requestCounter":100,"inBytes":17100,"outBytes":47700,"responses":{"1xx":0,"2xx":100,"3xx":0,"4xx":0,"5xx":0},"responseMsec":0,"weight":0,"maxFails":0,"failTimeout":0,"backup":false,"down":false,"overCounts":{"maxIntegerSize":18446744073709551615,"requestCounter":0,"inBytes":0,"outBytes":0,"1xx":0,"2xx":0,"3xx":0,"4xx":0,"5xx":0}}]}}
     
    Last edited: Jun 21, 2016