私は/etc/apache2/sites-available/SpinnerApp.confフラスコApacheのmod_wsgiをエンドレスページの読み込み
<VirtualHost *:80>
ServerName 95.xxx.xxx.xx
ServerAlias domain.ru
WSGIScriptAlias//var/www/SpinnerApp/spinnerapp.wsgi
WSGIDaemonProcess SpinnerApp user=www-data group=www-data threads=5
<Directory /var/www/SpinnerApp/SpinnerApp/>
WSGIProcessGroup SpinnerApp
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
そして/var/www/SpinnerApp/spinnerapp.wsgi
#!/usr/bin/python
import os, sys, logging
logging.basicConfig(stream=sys.stderr)
activate_this = os.path.join('/var/www/SpinnerApp/SpinnerApp/spinnerenv', 'bin', 'activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
sys.path.insert(0,'/var/www/SpinnerApp')
from SpinnerApp import app as application
を持っています
しかし、ブラウザのページにipを入力すると、loadindは終了しません。 Apacheログにエラーはありません。
してください、これは間違っている