forked from amandakelake/blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
155 lines (132 loc) · 5.68 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
worker_processes 1;
events {
worker_connections 1024;
}
http {
resolver 114.114.114.114;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
# gzip on;
server {
listen 0.0.0.0 default_server;
listen 8880;
server_name _;
index index.php index.html index.htm;
root /Users/macbookpro-luoguangcong/projects/Fordeal/ECAME/public;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
location /fd/ {
add_header 'Access-Control-Allow-Origin' 'http://m.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain .duolainc.com .local.com;
proxy_set_header Host maltest.duolainc.com;
proxy_pass http://maltest.duolainc.com/;
add_header fd_host maltest.duolainc.com;
}
location /fduat/ {
add_header 'Access-Control-Allow-Origin' 'http://m.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain .duolainc.com .local.com;
proxy_set_header Host muat.duolainc.com;
proxy_pass http://muat.duolainc.com/;
add_header fd_host muat.duolainc.com;
}
location /fdonline/ {
add_header 'Access-Control-Allow-Origin' 'http://m.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain .fordeal.com .local.com;
proxy_set_header Host m.fordeal.com;
proxy_pass http://m.fordeal.com/;
add_header fd_host m.fordeal.com;
}
location /m_altest/ {
add_header 'Access-Control-Allow-Origin' 'http://m.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain .duolainc.com .local.com;
proxy_set_header Host maltest.duolainc.com;
proxy_pass http://maltest.duolainc.com/;
add_header fd_host maltest.duolainc.com;
}
location /m_uat/ {
add_header 'Access-Control-Allow-Origin' 'http://m.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain .duolainc.com .local.com;
proxy_set_header Host muat.duolainc.com;
proxy_pass http://muat.duolainc.com/;
add_header fd_host muat.duolainc.com;
}
location /m_online/ {
add_header 'Access-Control-Allow-Origin' 'http://m.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain .fordeal.com .local.com;
proxy_set_header Host m.fordeal.com;
proxy_pass http://m.fordeal.com/;
add_header fd_host m.fordeal.com;
}
location /mai_altest/ {
add_header 'Access-Control-Allow-Origin' 'http://mai.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain .duolainc.com .local.com;
proxy_set_header Host maialtest.duolainc.com;
proxy_pass http://maialtest.duolainc.com/;
add_header fd_host maialtest.duolainc.com;
}
location /mai_uat/ {
add_header 'Access-Control-Allow-Origin' 'http://mai.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain .duolainc.com .local.com;
proxy_set_header Host maiuat.duolainc.com;
proxy_pass http://maiuat.duolainc.com/;
add_header fd_host maiuat.duolainc.com;
}
location /mai_online/ {
add_header 'Access-Control-Allow-Origin' 'http://mai.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain .fordeal.cn .local.com;
proxy_set_header Host mai.fordeal.cn;
proxy_pass http://mai.fordeal.cn/;
add_header fd_host mai.fordeal.cn;
}
location /o_altest/ {
add_header 'Access-Control-Allow-Origin' 'http://o.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain .duolainc.com .local.com;
proxy_set_header Host altest.duolainc.com;
proxy_pass http://altest.duolainc.com/;
add_header fd_host altest.duolainc.com;
}
location /o_uat/ {
add_header 'Access-Control-Allow-Origin' 'http://o.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain .duolainc.com .local.com;
proxy_set_header Host uat.duolainc.com;
proxy_pass http://uat.duolainc.com/;
add_header fd_host uat.duolainc.com;
}
location /o_online/ {
add_header 'Access-Control-Allow-Origin' 'http://o.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain duolainc.com .local.com;
proxy_set_header Host duolainc.com;
proxy_pass http://duolainc.com/;
add_header fd_host duolainc.com;
}
location /fdm/ {
add_header 'Access-Control-Allow-Origin' 'http://o.local.com';
add_header 'Access-Control-Allow-Credentials' 'true';
proxy_cookie_domain xx.local.com .local.com;
proxy_set_header Host xx.local.com;
proxy_pass http://192.168.100.23:18081/;
add_header fd_host xx.local.com;
}
}
include servers/*;
}