Multiple WordPress blog installation

What is the process to install multiple WordPress blogs on a single DigitalOcean droplet? What are the steps to do multiple WordPress installations?

Have a look!

  1. Create a new database, assign unique user and password
  2. Create a new directory, put WP files there
mkdir -p /var/www/

Second site configuration must be like this

Keep server name on top to set priority and prevent unexected redirect to different site

server {
    server_tokens off;
    listen         80;
    return 301 https://$host$request_uri;
server {
listen 443;
server_tokens off;
index index.php index.html index.htm;

client_max_body_size 0;
ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
root /var/www/;

error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;

location / {
try_files $uri $uri/ /index.php?q=$uri&$args;

1 Like