SitePoint Sponsor

User Tag List

Results 1 to 12 of 12
  1. #1
    SitePoint Member
    Join Date
    May 2012
    Location
    Rotterdam, Netherlands, Netherlands
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Wordpress using nginx

    Hello,

    Due to stability issues with our site we are revamping our server configuration.

    I am running a wordpress site that I want to run the following way;

    I have 2 servers. Server #1 and Server #2.

    I want Server #1 to be the front end, and Server #2 to be the nginx proxy.

    This way the files are being generated locally on Server #1, and then being copied by SSH/FTP to Server #2, the proxy.

    By using this setup Server #2 keeps running even though Server #1 has any kind of problems.

    At the moment I am using W3 Total cache for my caching, but it doesn't support this configuration.

    Can anyone point me in the right way to realise this?

  2. #2
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    What you are actually doing it moving the weak link to Server #2. If Server #1 fails sure it will satisfy that case, but what if Server #2 fails, what then? What you actually need is a cluster of servers that are load balanced with one another. Redundant Servers doing the same thing.

    Basically, I call what you are doing, throwing a band aid on the real problem instead of fixing it.
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  3. #3
    SitePoint Member
    Join Date
    May 2012
    Location
    Rotterdam, Netherlands, Netherlands
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, because the site will continue running even if it can't access the database, because it serves up static pages...

  4. #4
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Thats not my point. What happens when Server #2 fails?
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  5. #5
    SitePoint Member
    Join Date
    May 2012
    Location
    Rotterdam, Netherlands, Netherlands
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Correction: If server #2 fails we have a 3rd server to pick up the traffic.

  6. #6
    SitePoint Member
    Join Date
    May 2012
    Location
    Rotterdam, Netherlands, Netherlands
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need a way to generate static pages from my wordpress site, which I then serve to people. But as I'm using Woocommerce, it's been quite a hassle

  7. #7
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,633
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Ecommerce stuff usually fails as static. Even if you can serve the pages, you can't take orders.

    Hit the real problem -- stability in your wordpress setup.

  8. #8
    SitePoint Member
    Join Date
    May 2012
    Location
    Rotterdam, Netherlands, Netherlands
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've macgyverd my forms and stuff into Iframes which I host externally, so that keeps working. I just want to convert my Wordpress/Woocommerce site into static html files which sync.

  9. #9
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,551
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    There are people out there doing similar to what you need with varnish e.g 1 2 There was a wp varnish plugin but it's not been updated in ages, but might prove a useful starting point. I'd always look to separate a caching proxy from your primary web server.

  10. #10
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can learn how to configure W3 Total Cache with WordPress-Nginx here.
    http://rtcamp.com/tutorials/wordpres...3-total-cache/
    If this didn't solve your problem, please let me know
    Recently bought a new blog. Know how to buy and sell blogs

  11. #11
    SitePoint Member
    Join Date
    May 2012
    Location
    Rotterdam, Netherlands, Netherlands
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Shahzad Saeed View Post
    You can learn how to configure W3 Total Cache with WordPress-Nginx here.
    http://rtcamp.com/tutorials/wordpres...3-total-cache/
    If this didn't solve your problem, please let me know
    Thanks alot, I'm going to check this out and see if it works!

    Will get back with the results

  12. #12
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And I'll be waiting...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •