-
Notifications
You must be signed in to change notification settings - Fork 3
/
nginx.conf
53 lines (40 loc) · 1.18 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
events {
worker_connections 1024;
}
http {
access_log /dev/stdout;
error_log /dev/stderr;
gzip on;
gzip_disable "msie6";
charset UTF-8;
include /etc/nginx/mime.types;
server {
listen 80 default_server;
index index.html index.htm;
root /var/www;
location / {
try_files $uri /about.viblo.asia/dist/$uri /about.viblo.asia/dist/index.html =404;
}
location ~ ^/app(/|$) {
try_files $uri /app/$uri /app/index.html =404;
}
location ~ ^/tools(/|$) {
try_files $uri /tools/$uri /tools/index.html =404;
}
location ~ ^/careers(/|$) {
try_files $uri /careers/$uri /careers/index.html =404;
}
location ~ ^/organization-feature(/|$) {
try_files $uri /organization-feature/$uri /organization-feature/index.html =404;
}
location ~ ^/survey-results(/|$) {
try_files $uri /survey-results/$uri /survey-results/index.html =404;
}
location /error {
try_files /error.html =404;
}
location /maintain {
try_files /maintain.html =404;
}
}
}