lighttpd - How do I enable external access to a python fcgi app? -
i have simple web app displays simple hello world
. can access app through web browser (127.0.0.1:3000/test/hello), cannot access using local ip app running on, or using external ip (i have forwarded port appropriately on router).
server.modules += ( "mod_fastcgi" ) server.document-root = "/users/me/test" server.port = 3000 server.bind = "127.0.0.1" fastcgi.debug = 1 fastcgi.server = ( "test" => ( "python-fcgi" => ( "socket" => "/tmp/fastcgi.python.socket", "bin-path" => "/users/me/hello.py", "check-local" => "disable", "max-procs" => 1, ) ))
how access web app using external ip?
set server.bind
local network ip of server rather localhost 127.0.0.1
. check port 3000 not blocked between hosts on network.
by binding localhost bound loopback interface of machine, means lighttpd not listening on network @ all.
alternatively, accept request no matter how directed server, bind 0.0.0.0
enables interfaces.
Comments
Post a Comment