I'm trying to set up a multisite environment in drupal using subdirectories. There's a very good set of instructions here: http://www.drupalcoder.com/blog/drupal-multisite-in-subfolders, but it's specific to apache and I'm working with Nginx.
how do I do these 2 things in Nginx:
quoting from link above:
Add alias your Apache configuration file
We want requests for the 3 subdirectories to go to the same Drupal instance. We can do this using Apache's Alias functionality.
Alias /subdir1 /var/www Alias /subdir2 /var/www Alias /subdir3 /var/wwwI'm supposing here Drupal's codebase is hosted in /var/www on your machine.
Redirecting all requests to index.php
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.
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]