openbsd-ports/www/ruby-passenger/patches/patch-helper-scripts_prespawn
jeremy b43ac205b0 Update to 3.0.11. Support by the standalone version of passenger by
splitting into a multipackage, with a subpackage for the standalone
version (which embeds a version of nginx).  The standalone version
operates much like other ruby webservers, serving a single ruby/rack
application.

Switch to using the gem version of passenger.  Because the gem
installs into a versioned directory, setup symlinks to the
versioned directory so that nginx configuration files don't need
to be modified when the version is updated.
2011-12-13 18:38:17 +00:00

19 lines
429 B
Plaintext

$OpenBSD: patch-helper-scripts_prespawn,v 1.1 2011/12/13 18:38:18 jeremy Exp $
Just because you can listen on 0.0.0.0 does not mean you can
connect to it.
--- helper-scripts/prespawn.orig Wed Nov 16 13:16:37 2011
+++ helper-scripts/prespawn Wed Nov 16 13:18:06 2011
@@ -79,7 +79,9 @@ class PrespawnLocation
end
def request_host
- @uri.host
+ h = @uri.host
+ h = '127.0.0.1' if h == '0.0.0.0'
+ h
end
def socket