Note that there are some explanatory texts on larger screens.

plurals
  1. POmultisite environment in drupal using subdirectories on nginx
    primarykey
    data
    text
    <p>I'm trying to set up a multisite environment in drupal using subdirectories. There's a very good set of instructions here: <a href="http://www.drupalcoder.com/blog/drupal-multisite-in-subfolders" rel="nofollow">http://www.drupalcoder.com/blog/drupal-multisite-in-subfolders</a>, but it's specific to apache and I'm working with Nginx. </p> <p>how do I do these 2 things in Nginx:</p> <p>quoting from link above:</p> <blockquote> <p><strong>Add alias your Apache configuration file</strong></p> <p>We want requests for the 3 subdirectories to go to the same Drupal instance. We can do this using Apache's Alias functionality.</p> <pre><code>Alias /subdir1 /var/www Alias /subdir2 /var/www Alias /subdir3 /var/www </code></pre> <p>I'm supposing here Drupal's codebase is hosted in /var/www on your machine.</p> <p><strong>Redirecting all requests to index.php</strong></p> <p>Now that we're serving all requests from one codebase we have to redirect all requests to index.php. This needs to be done since all Drupal requests are served from one endpoint, called index.php.</p> <pre><code>RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^/subdir1/(.*)$ RewriteRule ^(.*)$ /subdir1/index.php?q=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^/subdir2/(.*)$ RewriteRule ^(.*)$ /subdir2/index.php?q=$1 [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^/subdir3/(.*)$ RewriteRule ^(.*)$ /subdir3/index.php?q=$1 [L,QSA] </code></pre> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload