New server configuration test 2
This commit is contained in:
4
app.py
4
app.py
@@ -707,6 +707,10 @@ def test_mysql():
|
||||
return "<html>MySQL test</html>"
|
||||
"""
|
||||
|
||||
@app.route('/public_html/403.shtml', methods=['GET'])
|
||||
def error_403():
|
||||
return "<html>Error 403</html>"
|
||||
|
||||
|
||||
# Onload
|
||||
if __name__ == '__main__':
|
||||
|
||||
@@ -10,4 +10,6 @@ def application(environ, start_response):
|
||||
message = 'It works!\n'
|
||||
version = 'Python %s\n' % sys.version.split()[0]
|
||||
response = '\n'.join([message, version])
|
||||
return [response.encode()]
|
||||
result = [response.encode()]
|
||||
print(f'result = {result}')
|
||||
return result
|
||||
Reference in New Issue
Block a user