Any suggestions for Nginx Object cache?

Discussion in 'Installation/Configuration' started by kresimir, Oct 20, 2024 at 12:36 PM.

  1. kresimir

    kresimir New Member

    Hi,

    I've tried to search previous posts but didn't find any relavant searches ..
    Wanted to know did anyone ever installed and configured Nginx with memcached module support or if Ispconfig support it? Nginx.org page => link
    In that way hosts could automatically benefit with caching backend system (on already installed memcached) for example like this:
    Code:
    server {
        location / {
            set            $memcached_key "$uri?$args";
            memcached_pass host:11211;
            error_page     404 502 504 = @fallback;
        }
    
        location @fallback {
            proxy_pass     http://backend;
        }
    }
    I'm currently on default setup on Ubuntu 22 - with Nginx, mariadb, memcached servers running.
    After my research AFAIK I see that default nginx flavor - does not come with ngx_http_memcached module prepackeged (nginx -V output does not list it)..

    Does that mean that we should uninstall default OS Nginx, pull down nginx.org version, build it from source and try to play with it?.. and how should we go about that @fallback rule above? - that is ispconfig's dynamic "location \@ php" that is outputed in each vhost nginx config file - and is not available to be modified in each hosts nginx directives panel(in admin)..

    Thanks for any input or ideas..

    (p.s. I'm willing to share results before/after with benchmark req per sec. results or tutorial if this ends like success on my end..)

    Kres
     
    Last edited: Oct 20, 2024 at 12:55 PM

Share This Page