Error :404 not found when I configure nginx and memcached

lvzhenyu nginx-forum at nginx.us
Sat Jul 10 07:20:33 MSD 2010


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




More information about the nginx mailing list