-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathencore.conf.example
50 lines (40 loc) · 1.41 KB
/
encore.conf.example
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#replace encore.url with your URL (don't include http(s))
#replace encore-path with path to repo folder
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName encore.url
Redirect permanent / https://encore.url/
ErrorLog "/var/log/apache2/encore.url-error.log"
CustomLog "/var/log/apache2/encore.url-access.log" common
</VirtualHost>
<VirtualHost *:443>
ServerAdmin [email protected]
DocumentRoot "encore-path/encore"
ServerName encore.url
ErrorLog "/var/log/apache2/encore.url-error.log"
CustomLog "/var/log/apache2/encore.url-access.log" common
## optionally, enable XSendFile with
## sudo a2enmod xsendfile
#XSendFile on
#XSendFilePath /path/to/jobs/folder/for/more/efficient/download
SSLEngine on
SSLCertificateFile /etc/ssl/certs/encore.url.cert
SSLCertificateKeyFile /etc/ssl/private/encore.url.key
#Removes stack underflow error
WSGIApplicationGroup %{GLOBAL}
WSGIDaemonProcess encore.url processes=1 threads=1 user=encore group=encore home=encore-path
WSGIProcessGroup encore.url
WSGIScriptAlias / /encore-path/encore.wsgi
WSGIPassAuthorization On
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
</Location>
<Directory /encore-path>
Require all granted
</Directory>
<Files /encore-path/encore.wsgi>
Require all granted
</Files>
</VirtualHost>