drupal-with-nginx icon indicating copy to clipboard operation
drupal-with-nginx copied to clipboard

Multiple roots inside a single domain

Open tcarmona opened this issue 10 years ago • 0 comments

Good morning perusio.

First things first, thank you very much for this configuration. It is near perfect, and I've learned many things about nginx only reading it's documentation.

I'm having some troubles adapting your configuration for an old website on our server. It runs a weird, non-drupal based translation where each language has it's own drupal instalation.

A quick example:

hostname/page should load index.php?q=page from the main language directory (/var/www/drupal_main), and 
hostname/es/page should load index.php?q=page from the drupal install inside another folder (/var/www/drupal_es).

The problem that I'm having is that your configuration is passing everything after the first / to drupal as the q parameter. (In the second example, it would load the index.php?q=en/page inside the main language drupal install). What should I change to make this configuration work? At first I've tried working with the root directive inside location blocks, but this don't seems to be the way to go.

Thank you very much.

tcarmona avatar Oct 13 '14 20:10 tcarmona