-
Notifications
You must be signed in to change notification settings - Fork 261
/
fbone.conf
31 lines (26 loc) · 955 Bytes
/
fbone.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
# Ubuntu: /etc/apache2/sites-available/fbone.conf
# MacOS: /etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot "/path/to/fbone"
# Dev in local, remember to edit /etc/hosts
# ServerName fbone.localhost
# Deploy in remote
ServerName www.fbone.com
ServerAlias app.fbone.com
ServerAdmin [email protected]
WSGIDaemonProcess fbone user=wilson threads=5
WSGIScriptAlias / /path/to/fbone/wsgi.py
<Directory /path/to/fbone/>
# http://modwsgi.readthedocs.io/en/develop/configuration-directives/WSGIScriptReloading.html
WSGIScriptReloading On
WSGIProcessGroup fbone
WSGIApplicationGroup %{GLOBAL}
# Aapche < 2.4
# Order allow,deny
# Allow from all
# Aapche >= 2.4
Require all granted
</Directory>
ErrorLog /path/to/instance_folder/logs/error.log
CustomLog /path/to/instance_folder/logs/access.log combined
</VirtualHost>