我有以下設置 - 並且在瀏覽器中訪問服務器時不會收到任何響應。如果我有一個運行fcgi的服務器並用瀏覽器訪問它,會發生什麼情況?
我應該期待一些嗎?這裏是測試設置,使用python & flup。
#test.py
def myapp(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
return ['abc\n']
import os
os.environ['FCGI_WEB_SERVER_ADDRS']="127.0.0.1:8000"
from flup.server.fcgi import WSGIServer
WSGIServer(myapp, bindAddress=('127.0.0.1',8000)).run()
python test.py
lynx http://127.0.0.1:8000
unexpected network read error; connection aborted
如果我註釋掉OS的東西,並重新啓動服務器:
lynx http://127.0.0.1:8000
HTTP request sent; waiting for response.
和從來都沒有返回。
謝謝。讓我感覺到的事情是,即使你遠程登錄到它,它也不會返回任何東西。 – fastmultiplication 2010-10-31 07:02:28