我在/var/www/html/
中有四个烧瓶应用程序。这三个人都很好。你知道吗
我最后添加的第四个摘要应用程序不起作用。给定错误:
Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
我查了/var/log/apache2/error.log
但也没有错误信息。你知道吗
你知道吗 服务器名http://IP 服务器别名IP 服务器管理员admin@mywebsite.com你知道吗
WSGIScriptAlias /app1 /var/www/html/flaskapp1/flaskapp1.wsgi
<Directory /var/www/html/flaskapp1>
Order allow,deny
Allow from all
</Directory>
WSGIScriptAlias /app2 /var/www/html/flaskapp2/flaskapp2.wsgi
<Directory /var/www/html/flaskapp2>
Order allow,deny
Allow from all
</Directory>
WSGIScriptAlias / /var/www/html/datainsighto_site/app_website.wsgi
<Directory /var/www/html/datainsighto_site>
Order allow,deny
Allow from all
</Directory>
WSGIScriptAlias /summary /var/www/html/TextSummarization/app.wsgi
<Directory /var/www/html/TextSummarization>
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
你知道吗应用程序类型你知道吗
from flask import Flask, render_template, request, jsonify,flash,redirect,url_for
import urllib.request
from bs4 import BeautifulSoup
from flask_restful import Resource,Api
from NLP2novratio import summarize
from newspaper import Article
from werkzeug import secure_filename
import textract
app = Flask(__name__)
sumrapi = Api(app)
app.config['SECRET_KEY'] = 'b58f1ad3ab27a913c64246143682ebf5'
@app.route('/')
def index():
return render_template('text-summarizer.html')
@app.route('/view', methods=['POST','GET'])
def view():
content = ''
try:
....
你知道吗应用程序.wsgi你知道吗
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/html/TextSummarization/")
from app import app as application
有错误的线索吗?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐