NGINX

I only use TCP. I noticed some unpredictable issues when I combine TCP with a socket, or socket alone.
I'm only running it on my test VPS, so moved it to the Unix socket to see how it goes.
 
Use Siege with over 1000 online users, if you want to test things. Running it with 1 online user won't do nothing.
 
Use Siege with over 1000 online users, if you want to test things. Running it with 1 online user won't do nothing.
I had a look at this last week. Do you run it from the same machine, or a different one?
 
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;
  }
 
Back
Top Bottom