From: Daniel F. <fly...@go...> - 2013-03-29 22:31:36
|
Hi all, Iam currently working on my configuration for using php with fcgi. The php-fpm allows listening on a socket, so i wonder if yaws does support connecting to a fcgi server via socket. The documentation of the manual does only cover the host:port way. |
From: Steve V. <vi...@ie...> - 2013-03-29 23:15:33
|
On Fri, Mar 29, 2013 at 6:31 PM, Daniel Fahlke <fly...@go...>wrote: > Hi all, > > Iam currently working on my configuration for using php with fcgi. > The php-fpm allows listening on a socket, so i wonder if yaws does support > connecting to a fcgi server via socket. The documentation of the manual > does only cover the host:port way. > Hi Daniel, sorry but I don't understand the question. Yaws always connects to an FCGI server listening for incoming socket connections -- specifying a hostname or IP address, along with a port number, is always how you connect. How else are you wanting to connect? Can you provide an example, or point me to an example on some website? --steve |
From: Daniel F. <fly...@go...> - 2013-03-29 23:20:00
|
2013/3/30 Steve Vinoski <vi...@ie...> > > > On Fri, Mar 29, 2013 at 6:31 PM, Daniel Fahlke <fly...@go...>wrote: > >> Hi all, >> >> Iam currently working on my configuration for using php with fcgi. >> The php-fpm allows listening on a socket, so i wonder if yaws does >> support connecting to a fcgi server via socket. The documentation of the >> manual does only cover the host:port way. >> > > Hi Daniel, sorry but I don't understand the question. Yaws always connects > to an FCGI server listening for incoming socket connections -- specifying a > hostname or IP address, along with a port number, is always how you > connect. How else are you wanting to connect? Can you provide an example, > or point me to an example on some website? > > --steve > sure, http://www.php.net/manual/en/install.fpm.configuration.php the part "List of pool directives" the first one "listen" The address on which to accept FastCGI requests. Valid syntaxes are: 'ip.add.re.ss:port', 'port', '/path/to/unix/socket'. This option is mandatory for each pool. does this help? |
From: Steve V. <vi...@ie...> - 2013-03-29 23:31:04
|
On Fri, Mar 29, 2013 at 7:19 PM, Daniel Fahlke <fly...@go...>wrote: > > > > 2013/3/30 Steve Vinoski <vi...@ie...> > >> >> >> On Fri, Mar 29, 2013 at 6:31 PM, Daniel Fahlke <fly...@go... >> > wrote: >> >>> Hi all, >>> >>> Iam currently working on my configuration for using php with fcgi. >>> The php-fpm allows listening on a socket, so i wonder if yaws does >>> support connecting to a fcgi server via socket. The documentation of the >>> manual does only cover the host:port way. >>> >> >> Hi Daniel, sorry but I don't understand the question. Yaws always >> connects to an FCGI server listening for incoming socket connections -- >> specifying a hostname or IP address, along with a port number, is always >> how you connect. How else are you wanting to connect? Can you provide an >> example, or point me to an example on some website? >> >> --steve >> > > sure, > > http://www.php.net/manual/en/install.fpm.configuration.php > the part "List of pool directives" the first one "listen" > > The address on which to accept FastCGI requests. Valid syntaxes are: > 'ip.add.re.ss:port', 'port', '/path/to/unix/socket'. This option is > mandatory for each pool. > > does this help? > Yes, thanks Daniel, that does help. I guess you're asking if Yaws FCGI support can handle UNIX domain sockets? If so, then no, at least not easily -- to the best of my knowledge Erlang supplies only an old experimental driver for UNIX domain sockets, and I don't know how well or even if it works as I've never used it. But I know Erlang drivers pretty well, so it might be possible to add such support, depending on how soon you're looking for it. --steve |
From: Daniel F. <fly...@go...> - 2013-03-30 02:48:20
|
2013/3/30 Steve Vinoski <vi...@ie...> > > > On Fri, Mar 29, 2013 at 7:19 PM, Daniel Fahlke <fly...@go...>wrote: > >> >> >> >> 2013/3/30 Steve Vinoski <vi...@ie...> >> >>> >>> >>> On Fri, Mar 29, 2013 at 6:31 PM, Daniel Fahlke < >>> fly...@go...> wrote: >>> >>>> Hi all, >>>> >>>> Iam currently working on my configuration for using php with fcgi. >>>> The php-fpm allows listening on a socket, so i wonder if yaws does >>>> support connecting to a fcgi server via socket. The documentation of the >>>> manual does only cover the host:port way. >>>> >>> >>> Hi Daniel, sorry but I don't understand the question. Yaws always >>> connects to an FCGI server listening for incoming socket connections -- >>> specifying a hostname or IP address, along with a port number, is always >>> how you connect. How else are you wanting to connect? Can you provide an >>> example, or point me to an example on some website? >>> >>> --steve >>> >> >> sure, >> >> http://www.php.net/manual/en/install.fpm.configuration.php >> the part "List of pool directives" the first one "listen" >> >> The address on which to accept FastCGI requests. Valid syntaxes are: >> 'ip.add.re.ss:port', 'port', '/path/to/unix/socket'. This option is >> mandatory for each pool. >> >> does this help? >> > > Yes, thanks Daniel, that does help. I guess you're asking if Yaws FCGI > support can handle UNIX domain sockets? If so, then no, at least not easily > -- to the best of my knowledge Erlang supplies only an old experimental > driver for UNIX domain sockets, and I don't know how well or even if it > works as I've never used it. But I know Erlang drivers pretty well, so it > might be possible to add such support, depending on how soon you're looking > for it. > > --steve > > Thanks for looking at it. Its not important for me, but would be a nice to have feature. |