Django +uWSGI+チェロキーに問題はありませんでした。しかし、どちらかのフレームワークにコミットする前に、パイロンを試してみたいと思います。
pylonshq.comのチュートリアルに従いました-1.0/gettingstarted
ペーストでパイロンを動かしても問題はありませんでした。
そこで、projects.unbit.itからuWSGIを使用してパイロンを実行する手順を使用しました--uwsgi / wiki / UsePaste
これは、Cherokee(接続127.0.0.1:5000)で使用したソースインタープリターラインです。
uwsgi -s 127.0.0.1:5000 --paste config:/var/www/pylons/example/development.ini -H /var/www/pylons/ -M
チェロキーの私のvServerは、ルートディレクトリが/ var / www / pyrons / example / example / publicのbokken.test.comです(末尾のスラッシュがある場合とない場合で試しました)
「ディレクトリ/」ルールハンドラーはuWSGIソースに設定されていますが、特定のハンドラーにルートディレクトリが設定されていません。
bokken.test.comにアクセスすると、リダイレクトループエラーが発生します。
グーグルクローム:
The webpage at http://bokken.test.com// has resulted in too many redirects (Notice the extra slash).
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
エラーログ:
*** Starting uWSGI 0.9.5.4 (32bit) on [Sat Aug 7 19:01:51 2010] ***
compiled with version: 4.4.3
Python version: 2.6.5 (r265:79063, Apr 16 2010, 13:28:26)
[GCC 4.4.3]
your memory page size is 4096 bytes
allocated 372 bytes (0 KB) for 1 request's buffer.
Setting PythonHome to /var/www/pylons/...
binding on TCP port: 5000
your server socket listen backlog is limited to 64 connections
initializing hooks...done.
Loading paste environment: config:/var/www/pylons/example/development.ini
application 0 (/) ready
setting default application to 0
spawned uWSGI master process (pid: 1278)
spawned uWSGI worker 1 (pid: 1280)
[pid: 1280|app: 0|req: 1/1] 192.168.0.198 () {52 vars in 926 bytes} [Sat Aug 7 19:01:55 2010] GET / => generated 433 bytes in 7 msecs (HTTP/1.1 301) 2 headers in 95 bytes (0 async switches on async core 0)
Djangoとは異なり、私が見つけたチュートリアルでは、uwsgi.xmlまたは.wsgiスクリプトを指定していません。何を変更する必要があるのかわかりません。