NGINX

Use Siege with over 1000 online users, if you want to test things. Running it with 1 online user won't do nothing.
 
Would that be better:
PHP:
location / {
  try_files $uri /index.php?$uri&$args;

  location /internal_data/ {
     internal;
     allow 127.0.0.1;
     deny all;
  }

  location /library/ {
     internal;
     allow 127.0.0.1;
     deny all;
  }
}

or this
PHP:
location / {
  try_files $uri /index.php?$uri&$args;
}
  location /internal_data/ {
     internal;
     allow 127.0.0.1;
     deny all;
  }

  location /library/ {
     internal;
     allow 127.0.0.1;
     deny all;
  }
 
Top Bottom