perusio / drupal-with-nginx

Running Drupal using nginx: an idiosyncratically crafted bleeding edge configuration.
854 stars 246 forks source link

Symlink in document root produce error 404 #206

Open heyyoyo opened 9 years ago

heyyoyo commented 9 years ago

I'm using the module subfolders domains (https://www.drupal.org/project/subfolders_domain) to create domains as subfolders(uri) of my main domain. PS: This module is using the module Domain Access

This module create symbolic links in drupal document root for each subfolder.

Example in my drupal document root I have several symlinks:

france -> /var/www/drupal uk -> /var/www/drupal index,php modules themes sites...

If I browse to maindomain.com/france I should see the content of my domain france, but instead I see a 404 error.

I tried the setting disable_symlink http://nginx.org/en/docs/http/ngx_http_core_module.html#disable_symlinks

But still no success.

Any idea ?