Possible bug? Redirect 301 to 1st hostname in server_name list

Dale Gallagher dale.gallagher at gmail.com
Mon Nov 29 14:56:28 MSK 2010

On 29 November 2010 13:15, Boris Dolgov <boris at dolgov.name> wrote:
>> following config. host1 and host2 currently point to another server
>> (DNS), so host3 is used for testing. When requesting host3/drupal
>> nginx sends http 301 and the browser is redirected to host1/drupal
>> (which is on another server). If I place host3 1st in the list, then
>> everything works fine? Is this an nginx bug, or a config issue? If the
>> latter, how should I configure nginx so that drupal behaves
>> identically for all server_name's?
> This is a config issue - use server_name_in_redirect off;

Thank you. I see it's on the wiki too - I should've found that! Much


More information about the nginx mailing list