Followup from #1975188: nginx default server overrides configured vhosts
The changes committed to the vhosts.tpl.php in commit 2233ee15617cd2443cbd9fb156f77f1317f06fbc implement a listener on *:80 instead of using the defined IP address(es), which is great.
However, it also means that in my current server setup, running Nginx and Aegir locally on OS X, no longer works as *:80 doesn't work for localhost access.
The closest I could find to another having a similar issue to this is in the following thread: http://forum.nginx.org/read.php?2,234282,234290#msg-234290
The solution is quite simple, add an additional listener for 'localhost:80' or '127.0.0.1:80' and everything works smoothly .
http://drupalcode.org/sandbox/deciphered/2005700.git/shortlog/refs/heads...
Patch: http://drupalcode.org/sandbox/deciphered/2005700.git/patch/a54dbe0df2648...
Comments
Comment #1
omega8cc commentedSo it sounds like something OS X specific then, or even ipv6 specific.
But I'm not sure I follow, because adding this extra directive to just the default vhost has no impact on other vhosts.
Do you suggest that we should add it also in the vhost template?OK, I see that the patch is for the vhost only, while it should be also for the default vhost.Also, how it works in Apache on OS X? Is this purely Nginx specific? Note that we now match the Apache default.
What are the symptoms you are experiencing?
Comment #2
omega8cc commentedNote also that this thread confirms that it doesn't work for them with
localhost:80;, only with127.0.0.1:80;I would like to hear how/if this works with Apache and current Aegir 2.x setup?
Comment #3
realityloop commentedthere is already a patch for that: http://drupal.org/node/1975188
Comment #4
omega8cc commentedMaxim Dounin explained that it is in fact an userland issue:
Comment #5
omega8cc commentedWe need to investigate more to find the source of the problem and the fix, not a quick workaround. I need answers to my questions posted in comments above.
Comment #6
realityloop commentedWe've only found this issue with nginx, we don't use apache so are unable to comment on that.
We're not sure this is the correct route, only that is worked for us.
Comment #7
omega8cc commentedSo if just adding
localhost:80;helps for you on OS X, then it is not related to ipv6.We need more information on debugging, errors etc, to make sure we are introducing a fix and not a blind workaround for unknown issue.
Comment #8
omega8cc commentedAlso, which Nginx version are you using?
Comment #9
omega8cc commentedTo better understand why I'm so far against this specific workaround, please see this known bug: http://trac.nginx.org/nginx/ticket/187
Comment #10
realityloop commentedI have nginx 1.2.1, Deciphered is using nginx 1.4.1 and the issue is still present without the patch above.
Comment #11
helmo commentedThe 6.x-2.x branch will go EOL along with Drupal this week. So I'm closing
this issue. If it remains a confirmed issue in 7.x-3.x, feel free to re-open,
or better yet, create a new issue referencing this one.