1

ここに私の問題があります:

bottle.py アプリケーションを作成し、内部の bottle.py Web サーバーを使用して PC で実行しました。今、私は自分のアプリケーションを自分のサーバーにアップロードし、apache2 + mod_wsgi で実行したいと思います。次のファイルを作成しました:

/etc/apache2/sites-enabled/ 000-デフォルト

...  

WSGIDaemonProcess web user=www-data group=www-data processes=1 threads=5
WSGIScriptAlias /dem /var/www/vhosts/test.de/rbdemo/app.wsgi
WSGIProcessGroup web

<Directory /var/www/vhosts/test.de/rbdemo>
    WSGIApplicationGroup %{GLOBAL}
    Order deny,allow
    Allow from all
</Directory>

/var/www/vhosts/test.de/rbdemo/app.wsgi _

import sys, os

sys.path = ['/var/www/vhosts/test.de/rbdemo'] + sys.path
os.chdir(os.path.dirname(__file__))

from web import default_app # This loads your application

application = default_app()

そして私のアプリケーションでは:

/var/www/vhosts/test.de/rbdemo/web.py _

from bottle import TEMPLATE_PATH, request, redirect, route, hook, run, default_app, jinja2_template as template, static_file

...

if __name__ == '__main__':
    run(reloader=True)

アパッチログ

Fatal Python error: PyEval_AcquireThread: NULL new thread state
[Wed Mar 27 17:26:47 2013] [notice] child pid 10124 exit signal Aborted (6)
Fatal Python error: PyEval_AcquireThread: NULL new thread state
[Wed Mar 27 17:29:13 2013] [notice] child pid 18003 exit signal Aborted (6)
Fatal Python error: PyEval_AcquireThread: NULL new thread state
[Wed Mar 27 17:30:47 2013] [notice] child pid 10126 exit signal Aborted (6)
Fatal Python error: PyEval_AcquireThread: NULL new thread state
[Wed Mar 27 17:32:32 2013] [notice] child pid 21774 exit signal Aborted (6)
Fatal Python error: PyEval_AcquireThread: NULL new thread state
[Wed Mar 27 17:32:37 2013] [notice] child pid 21779 exit signal Aborted (6)
[Wed Mar 27 17:59:17 2013] [error] [client 118.139.160.196] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)

しかし、自分のアプリケーション (demo.test.de) にアクセスしようとすると、403 Forbidden エラーが発生します...

何か案は ?

ありがとうございました。

4

0 に答える 0