Join the community today
Become a Member

Nginx Pingdom requests and Nginx limit requests value

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Sep 5, 2017.

  1. pamamolf

    pamamolf Well-Known Member

    2,767
    245
    63
    May 31, 2014
    Ratings:
    +436
    Local Time:
    9:27 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hello :)

    I was checking at :
    Code:
    https://tools.pingdom.com/
    and there is a box related to requests needed to view the page.....

    [​IMG]

    Is that the related value for Nginx requests limit so i can set it for example at 140 ?

    Or is there any easier way to calculate that value like Chrome Inspector ?

    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:27 AM
    Nginx 1.13.x
    MariaDB 5.5
    example html page has 1x css file + 1x js file + 1x png image so when you load the html page there are a total of 4 http requests including html page itself

    so yeah roughly one call to the html page would have 4 requests

    but as to request limit, depends on how you are rate limiting

    1. via nginx level then yes would be around 4 http requests for above example
    2. via fail2ban won't be the same as centmin mod by default disables static file logging to access logs so as far as I know fail2ban reading the access logs won't really see static files in their calculation unless you edit include file /usr/local/nginx/conf/staticfiles.conf and comment out all the references to the directive:
    Code (Text):
    access_log off;
    and then restart nginx
     
  3. pamamolf

    pamamolf Well-Known Member

    2,767
    245
    63
    May 31, 2014
    Ratings:
    +436
    Local Time:
    9:27 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    I just enable the limit using Nginx as you post that fail2ban can work using that limits for connections and requests..... or not?
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,562
    6,851
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,266
    Local Time:
    5:27 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah as outlined above static files maybe excluded with fail2ban but still should work as intended as you really only need to rate limit non-static files i.e. php etc
     
    • Informative Informative x 1