Any suggestions for Nginx Object cache?

Discussion in 'Installation/Configuration' started by kresimir, Oct 20, 2024.

  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
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. kresimir

    kresimir New Member

    Hi Tatwoman, thank you very much for reply,, and info.
    The article that you shared goes into memcace install - that I do have currently working great - and from WP both, getting and setting cache to and from articles works great.
    My intention was to utilize power and nginx directly piping getting/setting to memcache server direclty - kind of not to use php for that at all - AFAIK that should yield much better results..
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Not sure, but maybe it's compiled in? Have you verified that it does not work? If I remember correctly, on Debian, it works with the default Nginx from Debian. But debian has multiple versions, with different module sets, use:

    apt-cache search nginx

    to get all available packages. There should be a package like nginx-extras which has additional modules.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    the Nginx from nginx.org does not work with your ISPConfig system.
     

Share This Page