That's the way it works for me at http://zzzen.jottit.com/webpy_on_lighttpd
[ notice the "/" => ( ... ]
fastcgi.server = ("/test1" => (
"/" => (
"bin-path" => "/path/to/this/code.py",
"socket" => "/tmp/test1.socket",
"max-procs" => 1,
"check-local" => "disable"
)))
On Oct 29, 8:41 pm, 准备早起的鸟 <[EMAIL PROTECTED]> wrote:
> code.py:
>
> #!/usr/bin/python
> import web
>
> urls = (
> '/(.*)', 'hello'
> )
>
> class hello:
> def GET(self, name):
> i = web.input(times=1)
> if not name: name = 'world'
> for c in xrange(int(i.times)): print 'Hello,', name+'!'
>
> if __name__ == "__main__": web.run(urls, globals())
>
> lighttpd.conf:
>
> fastcgi.server = ( "/code.py" =>
> (( "socket" => "c:/windows/temp/fastcgi.socket",
> "bin-path" => "D:/web/LightTPD/htdocs/code.py",
> "max-procs" => 1,
> "bin-environment" => (
> "REAL_SCRIPT_NAME" => ""
> ),
> "check-local" => "disable"
> ))
> )
>
> url.rewrite-once = (
> "^/(.*)$" => "/code.py/$1",
> )
>
> start webserver has a error:
> <mod_fastcgi.c.999> execve failed for: d:/web/lighttpd/htdocs/code.py
> No such file or directory
> <mod_fastcgi.c 1025> the fastcgi-backend d:/web/lighttpd/htdocs/
> code.py failed to start:
> <mod_fastcgi.c 1029> child exited with status 2 d:/web/lighttpd/htdocs/
> code.py
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---