File tree Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Expand file tree Collapse file tree 2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 7
7
/web /index.html
8
8
/server /cache
9
9
/server /libs
10
+ /ssl /www.swoole.com.key
11
+ /ssl /wiki.swoole.com.crt
12
+ /ssl /www.swoole.com.crt
13
+ /ssl /wiki.swoole.com.key
Original file line number Diff line number Diff line change
1
+ server {
2
+ listen 80 ;
3
+ server_name www.swoole.com;
4
+ index index.html;
5
+ root /data/webroot/www.swoole.com/web;
6
+
7
+ location / {
8
+ rewrite ^/wiki/(.*)$ http://wiki.swoole.com/wiki/$1 permanent;
9
+ set $lang zh_CN;
10
+
11
+ if ($http_accept_language ~* ^en) {
12
+ set $lang en_US;
13
+ rewrite ^/$ /index.en.html last ;
14
+ }
15
+
16
+ if (!-e $request_filename ) {
17
+ proxy_pass http://127.0.0.1:9503;
18
+ }
19
+ }
20
+
21
+ }
22
+
23
+
24
+ server {
25
+ listen 80 ;
26
+ server_name wiki.swoole.com;
27
+ index index.html;
28
+ root /data/webroot/www.swoole.com/web;
29
+
30
+ location / {
31
+ rewrite ^/wiki/(.*)$ http://wiki.swoole.com/wiki/$1 permanent;
32
+ set $lang zh_CN;
33
+
34
+ if ($http_accept_language ~* ^en) {
35
+ set $lang en_US;
36
+ rewrite ^/$ /index.en.html last ;
37
+ }
38
+
39
+ if (!-e $request_filename ) {
40
+ proxy_pass http://127.0.0.1:9503;
41
+ }
42
+ }
43
+
44
+ }
45
+
You can’t perform that action at this time.
0 commit comments