forked from MScottBlake/docker-reposado
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreposado.conf
executable file
·37 lines (36 loc) · 1.53 KB
/
reposado.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
server {
listen 8088;
root /reposado/html;
## 10.4.x - Tiger
if ($http_user_agent ~ "Darwin/8") {
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/index$1.sucatalog last;
}
## 10.5.x - Leopard
if ($http_user_agent ~ "Darwin/9") {
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-leopard.merged-1$1.sucatalog last;
}
## 10.6.x - Snow Leopard
if ($http_user_agent ~ "Darwin/10") {
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-leopard-snowleopard.merged-1$1.sucatalog last;
}
## 10.7.x - Lion
if ($http_user_agent ~ "Darwin/11") {
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
## 10.8.x - Mountain Lion
if ($http_user_agent ~ "Darwin/12") {
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
## 10.9.x - Mavericks
if ($http_user_agent ~ "Darwin/13") {
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-10.9-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
## 10.10.x - Yosemite
if ($http_user_agent ~ "Darwin/14") {
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
## 10.11.x - El Capitain
if ($http_user_agent ~ "Darwin/15") {
rewrite ^/index(.*)\.sucatalog$ /content/catalogs/others/index-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1$1.sucatalog last;
}
}