Re: Separating Application and Server

Sam Vilain <sam-s9IUA/[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Nahemoth wrote:
> I want to separate the web server from the fastcgi application in
> different computers connected in the same network. But I don't know
> how to do that. How is the communication between the fcgi application
> and the web server? When I execute a fastcgi process (in linux) it
> exits and uses the screen as standard output. Is there any specific
> way to execute the fastcgi program? How do they know ip address and
> port for the data exchange?

In your web server, you will need to set up an `external' FastCGI
server.  When you do that, you will set up the hostname and port
combination.  See the FastCGIExternalServer config directive if you
are using Apache.

When you start your application, you will need to tell it the port
(and maybe IP) to listen on.  If your application is Perl and uses
CGI::Fast, you can set the environment variable FCGI_SOCKET_PATH to
something like :3000 or hostname:3000.
-- 
Sam Vilain, sam /\T vilain |><>T net, PGP key ID: 0x05B52F13
(include my PGP key ID in personal replies to avoid spam filtering)

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.