Add apache config.

This commit is contained in:
2020-01-11 10:35:22 +01:00
parent afcec9769e
commit 8f93023426

17
apache/ExampleFlask.conf Normal file
View File

@@ -0,0 +1,17 @@
<VirtualHost *:80>
# 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
<Directory /home/takiguchi/ExampleFlask/>
# set permissions as per apache2.conf file
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error-example-flask.log
LogLevel debug
CustomLog ${APACHE_LOG_DIR}/access-example-flask.log combined
</VirtualHost>