Giter VIP home page Giter VIP logo

multi-wp's Introduction

multi wp

nginx reverse proxy and multiple workdpress.

example domains

domain name domain type
hoge.com A record
fuga.hoge.com CNAME record

fix your domain.

clone repository

git clone https://github.com/mews-iidx/multi-wp

Get Let's Encrypt CERT

install certbot

apt install certbot

veryfication

certbot certonly --webroot -w /usr/share/nginx/html -d hoge.com -d fuga.hoge.com

copy and rename

cp /etc/letsencrypt/live/hoge.com/privkey.pem  ~/hoge.com/hoge.com.key
cp /etc/letsencrypt/live/hoge.com/fullchain.pem  ~/hoge.com/hoge.com.crt

up nginx reverse proxy

cd multi-wp/proxy
docker-compose up -d

optional: customizing

fix .env file.

CERT_PATH=~/hoge.com  #FIX
NETWORK_NAME=mynetwork

up hoge.com and fuga.hoge.com

cd hoge.com
docker-compose up -d

cd fuga.hoge.com
docker-compose up -d

optional: customizing

fix .env file.

WP_CONTAINER_NAME=hoge-container-wp
DB_CONTAINER_NAME=hoge-container-db
WP_DBNAME=my-wp
DB_USER=admin
DB_PASSWORD=user_password
DB_ROOT_PASSWORD=root_password
DOMAIN=hoge.com
NETWORK_NAME=mynetwork

enjoy!

open https://hoge.com and https://fuga.hoge.com

multi-wp's People

Contributors

mews-iidx avatar

Watchers

 avatar

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.