[Haskell-cafe] Re: Question about fastcgi
haskell at list.mightyreason.com
Fri Nov 28 10:07:30 EST 2008
Er, no. A fastcgi executable is (like a cgi executable) controlled by the front
end web server. I run my fastcgi using Apache as the front end. The front
end web server will control things like the port number.
> I'm learnng to use fastcgi and, reading the examples,
> I see the main "loop" is like this:
> main = runFastCGI my_work
> However, isn't a fastcgi program supposed to choose
> a port where to listen to calls? For instance, in this
> C example:
> doesn't the line
> listen_socket = FCGX_OpenSocket(":8002", 2000);
> says it's listening to port 8002? I read the code
> for fastcgi, from hackage, and I can't find anything
> related to ports like, for instance, a default port.
> Am I understanding something the wrong way?
More information about the Haskell-Cafe