# Error :404 not found when I configure nginx and memcached

**URL:** <https://www.ruby-forum.com/t/error-404-not-found-when-i-configure-nginx-and-memcached/191354>\
**Category:** NGINX\
**Created:** [July 10, 2010, 5:21am UTC](https://www.ruby-forum.com/t/error-404-not-found-when-i-configure-nginx-and-memcached/191354 "2010-07-10T05:21:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lvzhenyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/7bcc69/32.png) [@lvzhenyu](https://www.ruby-forum.com/u/lvzhenyu)\
**Post date:** [July 10, 2010, 5:21am UTC](https://www.ruby-forum.com/t/error-404-not-found-when-i-configure-nginx-and-memcached/191354/1 "2010-07-10T05:21:25Z")

</div>

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:

> **[Error :404 not found when I configure nginx and memcached](https://forum.nginx.org/read.php?2,107247,107247#msg-107247)**
>
> 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;

---

<div class="post-metadata">

**Author:** ![lvzhenyu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/7bcc69/32.png) [@lvzhenyu](https://www.ruby-forum.com/u/lvzhenyu)\
**Post date:** [July 12, 2010, 11:41am UTC](https://www.ruby-forum.com/t/error-404-not-found-when-i-configure-nginx-and-memcached/191354/2 "2010-07-12T11:41:21Z")

</div>

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](http://wiki.nginx.org/NginxHttpMemcModule#append_.24memc_key_.24memc_flags_.24memc_exptime_.24memc_value).

Posted at Nginx Forum:

> **[Re: Error :404 not found when I configure nginx and memcached](https://forum.nginx.org/read.php?2,107247,107827#msg-107827)**
>
> 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;
