GithubHelp home page GithubHelp logo

Comments (7)

AdnanHodzic avatar AdnanHodzic commented on August 25, 2024 1

Yes, they are. In this case, if you have multisite as part of docker-compose file, simply point different domain to different wordpress instance.

With this said, I'm going to close this issue. If you have this or similar issue, please submit a new issue or re-open this one.

from containerized-wordpress-project.

AdnanHodzic avatar AdnanHodzic commented on August 25, 2024

I have a ToDo item for this project to extend it and add support for additional virtual hosts.

Reason why I haven't automated this yet (besides lack of time) is that, everyone's additional virtual hosts use will vary. For example, does a person want this virtual hosts file for:

  • redirect of another domain to "domain" which was created during setup
  • redirect another 5 domains to 5 different targets
  • another domain name which will point to a particular port on host for proxy pass?
  • do we want to also configure Let's Encrypt for this additional domain?
  • et cetera ...

I personally have additional virtual hosts which I use, and would also benefit of implementing this feature. But at this point I just deploy it manually.

from containerized-wordpress-project.

avidsapp avatar avidsapp commented on August 25, 2024

Fair enough. I also manually implement additional virtual hosts. I have a few separate use cases. Ideally:

  1. Subdomains for the same TLD that use one central db container for multiple wordpress containers. Let's Encrypt for all subdomains
  2. Multiple TLDs with separate wordpress and db containers. Let's Encrypt for all domains.

I'm new to Ansible, but I can share as I figure out how to automate these.

from containerized-wordpress-project.

AdnanHodzic avatar AdnanHodzic commented on August 25, 2024

Subdomains for the same TLD that use one central db container for multiple wordpress containers. Let's Encrypt for all subdomains

Agreed, this is definitely a case scenario which most of the users would find useful. Same case is with Multiple TLDs with separate wordpress and db containers. Let's Encrypt for all domains..

I can do this when I have free time, but I'd definitely encourage you to try this yourself based on what I did with this role and project itself. Just see how I pass changes and how nginx configs are written, then extend it and build on top of that. I'd say to work on "1. subdomains" changes first, as it's relatively simple task.

If you manage to get anything done, please submit a Pull request which I'd be more than happy to review and pull in with master.

from containerized-wordpress-project.

avidsapp avatar avidsapp commented on August 25, 2024

Sure thing. I plan to extend when I get time.

I realized the catch-all subdomain doesn't redirect on AWS. Incorporating those Nginx blocks would be first priority.

from containerized-wordpress-project.

AdnanHodzic avatar AdnanHodzic commented on August 25, 2024

With latest changes, you're able to create as many subdomains as you want.

For example, as part of deployed docker-compose.yml file simply extend it to:

DOMAINS: foolcontrol.org -> http://wordpress:80, test.foolcontrol.org -> http://wordpress:80'

This will allow you to add as many subdomains as necessary.

from containerized-wordpress-project.

avidsapp avatar avidsapp commented on August 25, 2024

That's great news. Are these subdomains multisite compatible?

from containerized-wordpress-project.

Related Issues (10)

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.