Welcome! Log In Create A New Profile


Re: Nginx memcached setting

November 23, 2010 03:52PM
Thanks for replied.
I'm not using memcached with php but stand alone. I want to using nginx and memcached + php-fpm and eaccelerator.
i did tried this for my low traffic website and it works

listen 80;
server_name www.lowtraffic.net;
access_log /var/log/nginx/lowtraffic.net.access_log;
error_log /var/log/nginx/lowtraffic.net.error_log;

root /home/lowtraffic/public_html/;

location / {
set $memcached_key $uri;
default_type text/html;
error_page 404 405 = @fallback;

location ~* \.(gif|jpg|jpeg|png|css|js|ico)$ {
expires 30d;
access_log off;
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/lowtraffic/public_html/$fastcgi_script_name;
include fastcgi_params;
location @fallback {
rewrite ^ /index.php?q=$uri last;

But when i using with >1000 visitors online on the same time, i got request time out.
What's wrong?
Subject Author Posted

Nginx memcached setting

sastro November 21, 2010 12:29PM

Re: Nginx memcached setting

sastro November 22, 2010 06:08AM

Re: Nginx memcached setting

Jim Ohlstein November 22, 2010 06:02PM

Re: Nginx memcached setting

sastro November 23, 2010 03:52PM

Re: Nginx memcached setting

sastro November 25, 2010 04:00AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready