forked from psnehal/encore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
encore.conf
65 lines (54 loc) · 1.98 KB
/
encore.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#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 *:80>
# Add machine's IP address (use ifconfig command)
ServerName 192.168.2.216
# Give an alias to to start your website url with
WSGIScriptAlias /net/dumbo/home/snehal/encore/encore/encore.wsgi
<Directory /net/dumbo/home/snehal/encore/encore/>
# set permissions as per apache2.conf file
Options FollowSymLinks
AllowOverride None
Require all granted
</Directory>
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>