[Patch] Allow listening on Unix domain sockets
Igor Sysoev
is at rambler-co.ru
Sat Oct 24 01:20:55 MSD 2009
On Fri, Oct 23, 2009 at 03:12:33PM +0200, Hongli Lai wrote:
> The attached patch allows Nginx to listen on Unix domain sockets, like
> this:
>
> server {
> listen unix:/tmp/nginx.sock;
> server_name foobar.com;
> root /webapps/foobar;
> }
>
> We use it to improve proxying performance; Unix domain sockets are
> faster than TCP sockets.
>
> I'd like to see this patch getting merged upstream. Could a maintainer
> please review this patch?
>
> With kind regards,
> Hongli Lai
>
> Attachments:
> http://www.ruby-forum.com/attachment/4174/nginx-unix-sockets.diff
Thank you for the patch.
The attached version is more correct, in particular, it allows several
listen sockets:
server {
listen unix:/tmp/nginx1.sock;
server_name foobar1.com;
}
server {
listen unix:/tmp/nginx2.sock;
server_name foobar2.com;
}
--
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.listen.unix.txt
Type: application/octet-stream
Size: 2859 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20091024/b2b51e36/attachment.obj>
More information about the nginx
mailing list