New server configuration test 2

This commit is contained in:
2024-04-28 23:54:33 +01:00
parent 35804fb276
commit 5a961e49db
2 changed files with 7 additions and 1 deletions

4
app.py
View File

@@ -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__':

View File

@@ -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