Hi,
my basic setup for fastcgi (through a socket):
production.ini:
use = egg:PasteScript#flup_fcgi_thread
socket = /somewhere/someapp/run/fcgi.socket
lighttpd.conf:
fastcgi.server = ( "/someapp" =>
(
( "socket" => "/somewhere/someapp/run/fcgi.socket",
)
)
)
If ending the app-path with a / ("/someapp/" => ...), I got a
redirection loop with paste adding another / every time.
How does scgi compare to fastcgi, by the way?
Martin
On 22 Feb, 20:15, Anil <[EMAIL PROTECTED]> wrote:
> Never mind, I figured it out. I should've searched the list archives
> first. (duh) Thanks Ben, the tips in the other thread led me to
> this...
>
> Here is a minimalistic configuration:
>
> lighttpd.conf:
> # lighttpd configuration file
> #
>
> # default document-root
> server.document-root = "/opt/Entic/entic"
>
> # selecting modules
> server.modules = ( "mod_scgi", "mod_accesslog" )
>
> # where to send error messages to
> server.errorlog = "/var/log/lighttpd.error.log"
>
> # accesslog module
> accesslog.filename = "/var/log/lighttpd.access.log"
>
> ############ Options that should not be changed ####################
>
> #### scgi module
> scgi.server = ( "/" =>
> (
> "192.168.2.132" => (
> "host" => "127.0.0.1",
> "port" => 4000,
> "min-procs" => 1,
> "max-procs" => 2,
> "check-local" => "disable"
> )
> )
> )
>
> Pylons configuration file, production.ini:
> ...
> [server:main]
> use = egg:Paste#http
>
> #Use Fastcgi threaded
> [server:main]
> use = egg:PasteScript#flup_scgi_thread
> host = 127.0.0.1
> port = 4000
> ...
>
> You can't use sockets for scgi. I had to use host/port.
>
> On 2/21/07, Anil <[EMAIL PROTECTED]> wrote:
>
> > Can someone post some sample configuration files for lighttpd+fastcgi
> > implementation?
> > I need to do some urgent benchmarking and I couldn't get something
> > going from some of the documentation.
>
> > Thanks,
> > Anil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---