forked from pythonbrasil/pybr2012-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
32 lines (26 loc) · 941 Bytes
/
nginx.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
server {
listen 127.0.0.1:8000;
server_name 2012.pythonbrasil.org.br pythonbrasil.org.br;
rewrite /pre-registration/ /dashboard/ permanent;
charset utf-8;
location /media {
root /home/pythonbrasil/pythonbrasil8/pythonbrasil8;
expires max;
}
location /static {
root /home/pythonbrasil/pythonbrasil8/pythonbrasil8;
expires max;
}
location ~ (dashboard|accounts) {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8080;
}
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8080;
}
}