default 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481
  1. ##
  2. # You should look at the following URL's in order to grasp a solid understanding
  3. # of Nginx configuration files in order to fully unleash the power of Nginx.
  4. # http://wiki.nginx.org/Pitfalls
  5. # http://wiki.nginx.org/QuickStart
  6. # http://wiki.nginx.org/Configuration
  7. #
  8. # Generally, you will want to move this file somewhere, and start with a clean
  9. # file but keep this around for reference. Or just disable in sites-enabled.
  10. #
  11. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
  12. ##
  13. # Default server configuration
  14. #
  15. server {
  16. listen 8090;
  17. # First attempt to serve request as file, then
  18. # as directory, then fall back to displaying a 404.
  19. server_name _;
  20. index index.html;
  21. root /game/website/afh5/1.0.1/;
  22. location ^~ /user/ {
  23. proxy_pass http://47.122.0.171:9002;
  24. proxy_redirect off;
  25. proxy_set_header Host $host;
  26. proxy_set_header X-Real-IP $remote_addr;
  27. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  28. }
  29. fastcgi_connect_timeout 600;
  30. fastcgi_send_timeout 600;
  31. fastcgi_read_timeout 600;
  32. }
  33. server
  34. {
  35. listen 9833;
  36. server_name _;
  37. location / {
  38. index index.html;
  39. root /game/website/afh5/crm/client/;
  40. fastcgi_connect_timeout 600;
  41. fastcgi_send_timeout 600;
  42. fastcgi_read_timeout 600;
  43. }
  44. location /mkapi {
  45. proxy_pass http://127.0.0.1:9920;
  46. proxy_redirect off;
  47. proxy_set_header Host $host;
  48. proxy_set_header X-Real-IP $remote_addr;
  49. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  50. }
  51. }
  52. server
  53. {
  54. listen 443 ssl;
  55. ssl on;
  56. server_name yeshi-test.chenjinlei.xyz;
  57. location / {
  58. # First attempt to serve request as file, then
  59. # as directory, then fall back to displaying a 404.
  60. index index.html;
  61. root /game/website/afh5/1.0.1/;
  62. fastcgi_connect_timeout 600;
  63. fastcgi_send_timeout 600;
  64. fastcgi_read_timeout 600;
  65. }
  66. location ^~ /user/ {
  67. proxy_pass http://127.0.0.1:9002;
  68. proxy_redirect off;
  69. proxy_set_header Host $host;
  70. proxy_set_header X-Real-IP $remote_addr;
  71. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  72. }
  73. ssl_certificate ssl/8677451_yeshi-test.chenjinlei.xyz.pem;
  74. ssl_certificate_key ssl/8677451_yeshi-test.chenjinlei.xyz.key;
  75. ssl_session_timeout 5m;
  76. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  77. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  78. ssl_prefer_server_ciphers on;
  79. fastcgi_connect_timeout 600;
  80. fastcgi_send_timeout 600;
  81. fastcgi_read_timeout 600;
  82. }
  83. server
  84. {
  85. listen 443 ssl;
  86. ssl on;
  87. server_name www.pdmarket.cn;
  88. client_max_body_size 60m;
  89. client_body_buffer_size 60m;
  90. location /finance/ {
  91. # First attempt to serve request as file, then
  92. # as directory, then fall back to displaying a 404.
  93. index index.html;
  94. root /game/website/afh5/1.0.1/;
  95. try_files $uri $uri/ /finance/index.html;
  96. }
  97. location ^~ /user/ {
  98. proxy_pass http://127.0.0.1:9002;
  99. proxy_redirect off;
  100. proxy_set_header Host $host;
  101. proxy_set_header X-Real-IP $remote_addr;
  102. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  103. }
  104. location ^~ /ocrm/ {
  105. proxy_pass https://www.pdmarket.cn:6379;
  106. proxy_redirect off;
  107. proxy_set_header Host $host;
  108. proxy_set_header X-Real-IP $remote_addr;
  109. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  110. }
  111. ssl_certificate ssl/8849991_www.pdmarket.cn.pem;
  112. ssl_certificate_key ssl/8849991_www.pdmarket.cn.key;
  113. ssl_session_timeout 5m;
  114. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  115. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  116. ssl_prefer_server_ciphers on;
  117. fastcgi_connect_timeout 600;
  118. fastcgi_send_timeout 600;
  119. fastcgi_read_timeout 600;
  120. }
  121. server {
  122. listen 9832;
  123. listen [::]:9832;
  124. root /game/website/afh5/1.0.1/;
  125. }
  126. server {
  127. listen 80;
  128. listen [::]:80;
  129. root /game/website/afh5/1.0.1/;
  130. }
  131. server {
  132. listen 9834;
  133. listen [::]:9834;
  134. root /game/website/afh5/1.0.1/yibian/;
  135. client_max_body_size 60m;
  136. location / {
  137. root /game/website/afh5/1.0.1/yibian/;
  138. try_files $uri $uri/ @router;
  139. index index.html index.htm;
  140. }
  141. location /admin {
  142. root /game/website/afh5/1.0.1/yibian/;
  143. index index.html index.htm;
  144. try_files $uri $uri/ /admin/index.html;
  145. }
  146. location @router {
  147. rewrite ^.*$ /index.html last;
  148. }
  149. location /api/ {
  150. proxy_pass http://47.122.0.171:9989/;
  151. proxy_redirect off;
  152. proxy_set_header Host $host;
  153. proxy_set_header X-Real-IP $remote_addr;
  154. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  155. }
  156. }
  157. server {
  158. listen 9835;
  159. listen [::]:9835;
  160. root /game/website/afh5/1.0.1/greenrock/;
  161. client_max_body_size 60m;
  162. location / {
  163. root /game/website/afh5/1.0.1/greenrock/;
  164. try_files $uri $uri/ @router;
  165. index index.html index.htm;
  166. }
  167. location /admin {
  168. root /game/website/afh5/1.0.1/greenrock/;
  169. index index.html index.htm;
  170. try_files $uri $uri/ /admin/index.html;
  171. }
  172. location @router {
  173. rewrite ^.*$ /index.html last;
  174. }
  175. location /api/ {
  176. proxy_pass http://47.122.0.171:8081/;
  177. proxy_redirect off;
  178. proxy_set_header Host $host;
  179. proxy_set_header X-Real-IP $remote_addr;
  180. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  181. }
  182. }
  183. # crmeb 管理后台
  184. server {
  185. listen 9836;
  186. listen [::]:9836;
  187. root /usr/local/crmeb/;
  188. location / {
  189. root /usr/local/crmeb/admin/;
  190. try_files $uri $uri/ @router;
  191. index index.html index.htm;
  192. }
  193. #本地图片
  194. location /crmebimage/ {
  195. alias /usr/local/crmeb/crmebimage/;
  196. autoindex on;
  197. }
  198. location @router {
  199. rewrite ^.*$ /index.html last;
  200. }
  201. }
  202. # crmeb H5端
  203. server {
  204. listen 9837;
  205. listen [::]:9837;
  206. root /usr/local/crmeb/;
  207. location / {
  208. root /usr/local/crmeb/app/;
  209. try_files $uri $uri/ @router;
  210. index index.html index.htm;
  211. }
  212. location @router {
  213. rewrite ^.*$ /index.html last;
  214. }
  215. }
  216. # crmeb 管理后台
  217. server {
  218. listen 9838;
  219. listen [::]:9838;
  220. root /usr/local/crmeb/;
  221. #本地图片
  222. location /crmebimage/ {
  223. alias /usr/local/crmeb/crmebimage/;
  224. autoindex on;
  225. }
  226. }
  227. server {
  228. listen 8833;
  229. listen [::]:8833;
  230. server_name _;
  231. root /game/website/afh5/1.0.1/;
  232. }
  233. server
  234. {
  235. listen 443 ssl;
  236. ssl on;
  237. server_name hans.pdmarket.cn;
  238. location / {
  239. # First attempt to serve request as file, then
  240. # as directory, then fall back to displaying a 404.
  241. index index.html;
  242. root /game/website/afh5/1.0.1/;
  243. fastcgi_connect_timeout 600;
  244. fastcgi_send_timeout 600;
  245. fastcgi_read_timeout 600;
  246. }
  247. location ^~ /hsgy/ {
  248. proxy_pass https://hans.pdmarket.cn:6479;
  249. proxy_redirect off;
  250. proxy_set_header Host $host;
  251. proxy_set_header X-Real-IP $remote_addr;
  252. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  253. }
  254. ssl_certificate ssl/8914257_hans.pdmarket.cn.pem;
  255. ssl_certificate_key ssl/8914257_hans.pdmarket.cn.key;
  256. ssl_session_timeout 5m;
  257. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  258. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  259. ssl_prefer_server_ciphers on;
  260. fastcgi_connect_timeout 600;
  261. fastcgi_send_timeout 600;
  262. fastcgi_read_timeout 600;
  263. }
  264. server
  265. {
  266. listen 9999 ssl;
  267. ssl on;
  268. server_name www.wiseplanet.com.cn;
  269. location / {
  270. proxy_pass http://58.247.49.58:9999;
  271. proxy_http_version 1.1;
  272. proxy_set_header Upgrade $http_upgrade;
  273. proxy_set_header Connection "Upgrade";
  274. }
  275. ssl_certificate ssl/8323933_www.wiseplanet.com.cn.pem;
  276. ssl_certificate_key ssl/8323933_www.wiseplanet.com.cn.key;
  277. ssl_session_timeout 5m;
  278. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  279. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  280. ssl_prefer_server_ciphers on;
  281. fastcgi_connect_timeout 600;
  282. fastcgi_send_timeout 600;
  283. fastcgi_read_timeout 600;
  284. }
  285. server {
  286. listen 443 ssl;
  287. listen [::]:443;
  288. ssl on;
  289. server_name www.wiseplanet.com.cn;
  290. root /game/website/afh5/1.0.1/;
  291. location ^~ /video/ {
  292. proxy_pass http://58.247.49.58:9988;
  293. proxy_redirect off;
  294. proxy_set_header Host $host;
  295. proxy_set_header X-Real-IP $remote_addr;
  296. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  297. }
  298. ssl_certificate ssl/8323933_www.wiseplanet.com.cn.pem;
  299. ssl_certificate_key ssl/8323933_www.wiseplanet.com.cn.key;
  300. ssl_session_timeout 5m;
  301. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  302. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  303. ssl_prefer_server_ciphers on;
  304. }
  305. server
  306. {
  307. listen 443 ssl;
  308. ssl on;
  309. server_name www.yibianshoucang.com;
  310. root /game/website/afh5/1.0.1/ybweb/;
  311. location /api/ {
  312. proxy_pass http://47.122.0.171:9989/;
  313. proxy_redirect off;
  314. proxy_set_header Host $host;
  315. proxy_set_header X-Real-IP $remote_addr;
  316. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  317. }
  318. location ^~ /new_battle/ {
  319. proxy_pass http://127.0.0.1:7379;
  320. proxy_redirect off;
  321. proxy_set_header Host $host;
  322. proxy_set_header X-Real-IP $remote_addr;
  323. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  324. }
  325. ssl_certificate ssl/9475984_www.yibianshoucang.com.pem;
  326. ssl_certificate_key ssl/9475984_www.yibianshoucang.com.key;
  327. ssl_session_timeout 5m;
  328. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  329. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  330. ssl_prefer_server_ciphers on;
  331. }
  332. server
  333. {
  334. listen 443 ssl;
  335. ssl on;
  336. server_name admin.yibianshoucang.com;
  337. root /game/website/afh5/1.0.1/;
  338. location /api/ {
  339. proxy_pass http://47.122.0.171:9989/;
  340. proxy_redirect off;
  341. proxy_set_header Host $host;
  342. proxy_set_header X-Real-IP $remote_addr;
  343. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  344. }
  345. ssl_certificate ssl/9476239_admin.yibianshoucang.com.pem;
  346. ssl_certificate_key ssl/9476239_admin.yibianshoucang.com.key;
  347. ssl_session_timeout 5m;
  348. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  349. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  350. ssl_prefer_server_ciphers on;
  351. }
  352. server
  353. {
  354. listen 443 ssl;
  355. ssl on;
  356. server_name meta-chat.yibianshoucang.com;
  357. root /game/website/afh5/1.0.1/;
  358. location / {
  359. proxy_pass http://127.0.0.1:9900;
  360. proxy_http_version 1.1;
  361. proxy_set_header Upgrade $http_upgrade;
  362. proxy_set_header Connection "Upgrade";
  363. }
  364. ssl_certificate ssl/9486032_meta-chat.yibianshoucang.com.pem;
  365. ssl_certificate_key ssl/9486032_meta-chat.yibianshoucang.com.key;
  366. ssl_session_timeout 5m;
  367. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  368. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  369. ssl_prefer_server_ciphers on;
  370. }
  371. server
  372. {
  373. listen 443 ssl;
  374. ssl on;
  375. server_name grock.yibianshoucang.com;
  376. root /game/website/afh5/1.0.1/grock/;
  377. ssl_certificate ssl/9555557_grock.yibianshoucang.com.pem;
  378. ssl_certificate_key ssl/9555557_grock.yibianshoucang.com.key;
  379. ssl_session_timeout 5m;
  380. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  381. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  382. ssl_prefer_server_ciphers on;
  383. }