Introduction
This guide will take you through the steps for configuring your MDOQ hosted Magento 2 site to serve a Wordpress site.
Prerequisites
- You must have a Wordpress codebase within your repository. (In the directory
wp
)
Guide
Because Magento 2 sites are served through Varnish we need to intercept any and all requests to /wp/*
before it gets passed to Varnish.
To do this we need to add a https conf template, commit it to source control and then finally recreate the Nginx components.
- Add a https template
Our live domainwww.example.com
Path to template file:mdoq/nginx/templates/www.example.com_https.conf
In this file we are going to add the following:
- Commit this file to source control. (This can be done through the source control dialog)
- Recreate the Nginx component (This can be done through the synchronise dialog)