server {
listen 0.0.0.0:8080;
location / {
return 301 http://docc.io84.com/documentation/abalbum ;
}
location ~* ^/(documentation|tutorials) {
root /app;
try_files $uri $uri/ /documentation/index.html;
}
location ~* ^/(css|js|data|images|downloads|img|videos)\/.*$ {
root /app;
try_files $uri /documentation/$uri;
}
location ~* ^/(favicon\.ico|favicon\.svg|theme-settings\.json)$ {
root /app;
try_files $uri /documentation/$uri;
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
http://localhost/documentation/yourdocument
1