Error :404 not found when I configure nginx and memcached

When I install the nginx and memcached, there is an error: 404 not
found.
If commenting: memcached_pass IP:11211, the error is gone.
The configure file of my nginx is as follows:

    worker_processes  1;
  4 daemon off;
  5 master_process off;
  6 #error_log  logs/error.log;
  7 #error_log  logs/error.log  notice;
  8 #error_log  logs/error.log  info;
  9
 10 #pid        logs/nginx.pid;
 11
 12
 13 events {
 14     worker_connections  1024;
 15 }
 16
 17
 18 http {
 19     include       mime.types
 20     default_type  application/octet-stream;


 27
 28     sendfile        on;
 29     #tcp_nopush     on;
 30
 31     #keepalive_timeout  0;
 32     keepalive_timeout  65;
 33
 34     #gzip  on;
 35
 36     server {
 37         listen       38732;

38 server_name server ip;
39
43
44
45 location / {
46 set $memcached_key $uri;
47 memcached_pass server ip:11211;
48
49
50 root html;
51 index index.html index.htm;
52 }
53
58 error_page 500 502 503 504 /50x.html;
59 location = /50x.html {
60 root html;
61 }
}
}

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,107247,107247#msg-107247

now I have solved this problem. You can use this module
http://wiki.nginx.org/NginxHttpMemcModule#append_.24memc_key_.24memc_flags_.24memc_exptime_.24memc_value.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,107247,107827#msg-107827

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs