tags:

views:

12

answers:

0

Hi,

I want an Nginx server to just serve some memcached data, and so I have set up my location like this:

location /special_data/ {
                set $memcached_key my_memcached_key;
                memcached_pass     127.0.0.1:11211;
                default_type       text/html;
}

But visiting my site at the /special_data/ path gives me a 404. The above works fine when I just have it be the root (/) location, but removing the root location and replacing it with the 'special_data' location breaks it.

I am new to Nginx and locations, so any help would be much appreciated!