Comments (8)
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.
@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.
from aws-refarch-wordpress.
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.
from aws-refarch-wordpress.
That sounds great! Look forward to your changes.
from aws-refarch-wordpress.
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.
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)
- Q: Why are no custom NACLs defined?
- Slow Plugin Install time (504 Gateway Timeout errors) HOT 18
- One-Click Cloudformation template in README does not reference latest templates
- reinvent2019
- CloudFront Fails to create HOT 4
- How to update opcache configuration? HOT 1
- Won't work anymore...
- Doesn't work...
- Latest version of PHP HOT 4
- wp-admin not accessible with SSL
- Master template link 404
- EFS Resource Handler
- ElasticFileSystem' must match pattern ^(fs-)([a-z0-9]{8})$ cloudformation error
- EfsSizeMonitorFunction needs to be upgraded to python 3.9
- AutoScaling group in web stack fails to launch, PHP55 not avialable HOT 1
- Error creating stack - DatabaseCluster failed with incorrect MySql Aurora version HOT 1
- Error Creating Stack - AMI missing in Sydney Region HOT 1
- How can I recreate the AMIs with installed software?
- RDS issue HOT 1
- Stack to deploy a highly available, elastic, scalable WordPress environment. This master stack launches multiple nested stacks for different tiers. !! This can only be run in certain AWS Regions - 'us-east-1', 'us-east-2', 'us-west-2', 'eu-west-1'.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-refarch-wordpress.