Welcome! Log In Create A New Profile

Advanced

Re: [PATCH] implement a $location variable

António P. P. Almeida
January 04, 2013 04:06AM
On 4 Jan 2013 03h18 CET, david@gwynne.id.au wrote:

> need is a strong work, its just a lot nicer.
>
>> Have you each site installed in a subdir? Is that the case?
>
> no. it is a single copy of the drupal codebase which is shared by
> all the sites, they just have separate settings.php files. the way
> nginx tells drupal which settings to use is via SCRIPT_NAME based on
> $location.

Ok. If I understood correctly you have a typical multi-site setup. Why
are you doing the host resolution at the server level? Drupal does it
at the application level. It's capable of handling all hosts for which
the vhost is configured to support.

See:
http://api.drupal.org/api/drupal/includes%21bootstrap.inc/function/conf_path/7

--- appa

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] implement a $location variable

David Gwynne 1290 October 14, 2012 09:24PM

Re: [PATCH] implement a $location variable

Maxim Dounin 534 October 15, 2012 10:54AM

Re: [PATCH] implement a $location variable

David Gwynne 590 October 16, 2012 09:18AM

Re: [PATCH] implement a $location variable

Maxim Dounin 573 October 16, 2012 10:48AM

Re: [PATCH] implement a $location variable

David Gwynne 583 October 16, 2012 07:44PM

Re: [PATCH] implement a $location variable

David Gwynne 447 January 03, 2013 08:24PM

Re: [PATCH] implement a $location variable

António P. P. Almeida 431 January 03, 2013 09:00PM

Re: [PATCH] implement a $location variable

António P. P. Almeida 461 January 03, 2013 09:12PM

Re: [PATCH] implement a $location variable

David Gwynne 411 January 03, 2013 09:20PM

Re: [PATCH] implement a $location variable

António P. P. Almeida 484 January 04, 2013 04:06AM

Re: [PATCH] implement a $location variable

David Gwynne 462 January 04, 2013 05:36AM

Re: [PATCH] implement a $location variable

António P. P. Almeida 666 January 04, 2013 06:08AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 128
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready