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
-~----------~----~----~----~------~----~------~--~---

Reply via email to