Nginx

Change document root in nginx for external drive

I have a scenario in which I use Windows and Ubuntu on the same machine, and I want my sites to be shared across the OS. I have created a directory called 'common-sites' on my D drive, and I have configured the Drupal site with the domain drupal-demo-8.com.

My Ubuntu has an nginx web server. I want my common-sites to be available for Ubuntu as well.

Approach

0/5

Setup drupal 8 multisite on nginx with different domain

How to setup Drupal 8 multisite on an Nginx web server using different domains? In this example, we are going to use three different domains for our Drupal-8 multi-site ex: drupal-main.com, drupal-first.com, and drupal-second.com. Here, drupal-main.com will be the main site pointing to our Drupal-8 installation, while two others will be pointing to the directories site1 and site2 respectively.

The directory structure will be as follows:

0/5