From 8f93023426d0ed50b7682cb4a797b64d595ab110 Mon Sep 17 00:00:00 2001 From: takiguchi Date: Sat, 11 Jan 2020 10:35:22 +0100 Subject: [PATCH] Add apache config. --- apache/ExampleFlask.conf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 apache/ExampleFlask.conf diff --git a/apache/ExampleFlask.conf b/apache/ExampleFlask.conf new file mode 100644 index 0000000..86b5556 --- /dev/null +++ b/apache/ExampleFlask.conf @@ -0,0 +1,17 @@ + + # Add machine's IP address (use ifconfig command) + ServerName 192.168.0.32 + # Give an alias to to start your website url with + WSGIScriptAlias /testFlask /home/takiguchi/ExampleFlask/my_flask_app.wsgi + WSGIDaemonProcess FlaskApp python-home=/home/takiguchi/ExampleFlask + #WSGIProcessGroup FlaskApp + + # set permissions as per apache2.conf file + Options FollowSymLinks + AllowOverride None + Require all granted + + ErrorLog ${APACHE_LOG_DIR}/error-example-flask.log + LogLevel debug + CustomLog ${APACHE_LOG_DIR}/access-example-flask.log combined +