-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdefault
More file actions
37 lines (30 loc) · 770 Bytes
/
default
File metadata and controls
37 lines (30 loc) · 770 Bytes
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
server {
listen 80;
server_name localhost;
location ^~ /editor/static/ {
root /var/www/;
}
location ^~ /static/ {
root /var/www/public/;
}
location / {
uwsgi_pass 127.0.0.1:5000; # public app
include uwsgi_params;
}
location /editor/ {
uwsgi_pass 127.0.0.1:5001; # editor app
include uwsgi_params;
}
error_page 404 /404.html;
location = /404.html {
root /var/www/http-errors/;
}
error_page 400 401 402 403 405 406 407 408 409 410 411 412 /4xx.html;
location = /4xx.html {
root /var/www/http-errors/;
}
error_page 500 501 502 503 504 507 /50x.html;
location = /50x.html {
root /var/www/http-errors/;
}
}