Skip to content

Commit aadc92f

Browse files
committed
忽略文件
1 parent 9ab3ae0 commit aadc92f

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77
/web/index.html
88
/server/cache
99
/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

ssl/nginx.conf

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+

0 commit comments

Comments
 (0)