Giter VIP home page Giter VIP logo

Comments (8)

AshMartian avatar AshMartian commented on July 30, 2024

I know this is old, but I was able to get Multisite working by updating the _blogs and all _options mysql tables to reflect the DNS of the ELB. This is somewhat problematic when trying to reverse proxy, but I'll post the nginx configuration when I have it working. Should be possible with cloudfront as well, as long as w3-total-cache is configured to minify and serve all js/css files from s3/cloudfront.

from aws-refarch-wordpress.

kamrankhanwastaken avatar kamrankhanwastaken commented on July 30, 2024

@blandman does your configuration work with top-level domains? I want to use this CloudFormation stack to host a multisite WP that supports multiple domains and the documentation isn't very clear on whether this will work with the existing set of templates.

from aws-refarch-wordpress.

AshMartian avatar AshMartian commented on July 30, 2024

from aws-refarch-wordpress.

kamrankhanwastaken avatar kamrankhanwastaken commented on July 30, 2024

Are you going to commit those changes to the repository or are they already in there?

I was consulting this guide in the WP codex that indicates top-level domains are now inherently a part of WP since 4.5 and shows some basic setup for getting SSLs configured with SNI but I have yet to test. Would love to know if you have done this already.

from aws-refarch-wordpress.

AshMartian avatar AshMartian commented on July 30, 2024

from aws-refarch-wordpress.

kamrankhanwastaken avatar kamrankhanwastaken commented on July 30, 2024

That sounds great! Look forward to your changes.

from aws-refarch-wordpress.

AshMartian avatar AshMartian commented on July 30, 2024

I've made the push here: https://github.com/psd401/aws-refarch-wordpress
Pull that repo and upload to S3 for your template, works with restoring from previous EFS and Database, though with Multisite still manual addition of Multisite wp-config options is still required.

The template I use is templates/aws-refarch-wordpress-master-existing-vpc.yaml

from aws-refarch-wordpress.

ecout avatar ecout commented on July 30, 2024

You probably have to modify the template and redeploy the stack from scratch as indeed once you get into multisite the domain becomes a blocker in the database and the site will redirect you, even if you get it working.
You want to CREATE the database with multisite from scratch with the respective wp-config settings, otherwise you have to do what @blandman said here:
I know this is old, but I was able to get Multisite working by updating the _blogs and all _options mysql tables to reflect the DNS of the ELB.
Once you do that if you do a gray box test:
Isolate a single instance and hit its ip on multisite mode WITHOUT specifying the HTTP header that tells wordpress where you're coming from(your site FQDN). The wp instance will redirect you to the ELB/ALB thru the Route53 record that is hardcoded on the Multisite database and this makes things tightly coupled.
Old CMS environment like wordpress are not designed to be throw away and replace like we do in the Cloud era and thus are tightly coupled so you're bound to run into this kind of trouble.

That's why you use blue/green deployments.

from aws-refarch-wordpress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.