-
Notifications
You must be signed in to change notification settings - Fork 47
/
apache-flask.conf
31 lines (26 loc) · 986 Bytes
/
apache-flask.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# -*- apache -*-
<VirtualHost *:80>
Servername flask-apache
DocumentRoot /var/www/apache-flask/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# Python application integration
WSGIDaemonProcess /apache-flask processes=4 threads=20 python-path=/var/www/apache-flask/:/usr/bin/python
WSGIProcessGroup /apache-flask
WSGIScriptAlias / /var/www/apache-flask/apache-flask.wsgi
<Directory "/var/www/apache-flask/app/">
Header set Access-Control-Allow-Origin "*"
WSGIProcessGroup /apache-flask
WSGIApplicationGroup %{GLOBAL}
Options +ExecCGI
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Alias /static /var/www/apache-flask/app/static
<Directory /var/www/apache-flask/app/static/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>