Pylons¶
Pylons もとても簡単です。
project ini ファイル (デフォルトではdevelopment.ini
)を編集し、[server:main]
を以下に変更します:
[server:main]
use = egg:Flup#fcgi_thread
host = 0.0.0.0
port = 8080
flupを持っていない場合は、easy_install flup
を使ってインストールします。
virtula host 設定はこのようになるでしょう。
server {
server_name domain.tld;
location / {
# host and port to fastcgi server
fastcgi_pass 127.0.0.1:8080;
include fastcgi_params;
fastcgi_pass_header Authorization;
fastcgi_intercept_errors off;
}
}