나는 /etc/apache2/sites-available/SpinnerApp.conf플라스크 아파치 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를 입력 할 때 끝까지로드됩니다. 아파치 로그에 오류가 없습니다.
하십시오
도움이