Get the most out of your Centmin Mod LEMP stack
Become a Member

FastCGI_Cache using multiple WordPress single sites

Discussion in 'Blogs & CMS usage' started by Peter Downey, Jul 21, 2014.

Tags:
  1. Peter Downey

    Peter Downey Member

    62
    23
    8
    May 28, 2014
    Ratings:
    +25
    Local Time:
    11:51 PM
    Hey, I decided to pick up a new VPS from RamNode (using your http://centminmod.com/ramnode link, incase it was a referral link) to try to learn more and mess around with different configs.

    I wanted to try out the FastCGI_Cache config that you listed here (http://centminmod.com/nginx_configure_wordpress.html). I was wondering if it would work out of the box with multiple wordpress single sites, or if I'd need to somehow define different cache paths for each new domain. I'd prefer to not install them as a multisite if possible.
     
  2. eva2000

    eva2000 Administrator Staff Member

    31,022
    6,925
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,431
    Local Time:
    2:51 PM
    Nginx 1.13.x
    MariaDB 5.5
    do you mean different domains or different subdomains ?

    i.e.

    wpdomain1.com
    wpdomain2.com

    or

    wpdomain.com/wp1
    wpdomain.com/wp2

    For the first it's just separate Nginx vhost and separate fastcgi path and cache zone names.

    For the latter the same as first just would be off separate location contexts /wp1 and /wp2

    But haven't done this myself so not 100% sure
     
  3. Peter Downey

    Peter Downey Member

    62
    23
    8
    May 28, 2014
    Ratings:
    +25
    Local Time:
    11:51 PM
    Sorry, I mean different domains.
    wpdomain1.com
    wpdomain2.com

    Thanks for pointing me in the right direction. I've since been doing some reading trying to get it all working.