default 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  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. location / {
  136. root /game/website/afh5/1.0.1/yibian/;
  137. try_files $uri $uri/ @router;
  138. index index.html index.htm;
  139. }
  140. location /admin {
  141. root /game/website/afh5/1.0.1/yibian/;
  142. index index.html index.htm;
  143. try_files $uri $uri/ /admin/index.html;
  144. }
  145. location @router {
  146. rewrite ^.*$ /index.html last;
  147. }
  148. location /api/ {
  149. proxy_pass http://47.122.0.171:9989/;
  150. proxy_redirect off;
  151. proxy_set_header Host $host;
  152. proxy_set_header X-Real-IP $remote_addr;
  153. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  154. }
  155. }
  156. server {
  157. listen 9835;
  158. listen [::]:9835;
  159. root /game/website/afh5/1.0.1/greenrock/;
  160. location / {
  161. root /game/website/afh5/1.0.1/greenrock/;
  162. try_files $uri $uri/ @router;
  163. index index.html index.htm;
  164. }
  165. location /admin {
  166. root /game/website/afh5/1.0.1/greenrock/;
  167. index index.html index.htm;
  168. try_files $uri $uri/ /admin/index.html;
  169. }
  170. location @router {
  171. rewrite ^.*$ /index.html last;
  172. }
  173. location /api/ {
  174. proxy_pass http://47.122.0.171:8081/;
  175. proxy_redirect off;
  176. proxy_set_header Host $host;
  177. proxy_set_header X-Real-IP $remote_addr;
  178. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  179. }
  180. }
  181. server {
  182. listen 8833;
  183. listen [::]:8833;
  184. server_name _;
  185. root /game/website/afh5/1.0.1/;
  186. }
  187. server
  188. {
  189. listen 443 ssl;
  190. ssl on;
  191. server_name hans.pdmarket.cn;
  192. location / {
  193. # First attempt to serve request as file, then
  194. # as directory, then fall back to displaying a 404.
  195. index index.html;
  196. root /game/website/afh5/1.0.1/;
  197. fastcgi_connect_timeout 600;
  198. fastcgi_send_timeout 600;
  199. fastcgi_read_timeout 600;
  200. }
  201. location ^~ /hsgy/ {
  202. proxy_pass https://hans.pdmarket.cn:6479;
  203. proxy_redirect off;
  204. proxy_set_header Host $host;
  205. proxy_set_header X-Real-IP $remote_addr;
  206. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  207. }
  208. ssl_certificate ssl/8914257_hans.pdmarket.cn.pem;
  209. ssl_certificate_key ssl/8914257_hans.pdmarket.cn.key;
  210. ssl_session_timeout 5m;
  211. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  212. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  213. ssl_prefer_server_ciphers on;
  214. fastcgi_connect_timeout 600;
  215. fastcgi_send_timeout 600;
  216. fastcgi_read_timeout 600;
  217. }
  218. server
  219. {
  220. listen 9999 ssl;
  221. ssl on;
  222. server_name www.wiseplanet.com.cn;
  223. location / {
  224. proxy_pass http://58.247.49.58:9999;
  225. proxy_http_version 1.1;
  226. proxy_set_header Upgrade $http_upgrade;
  227. proxy_set_header Connection "Upgrade";
  228. }
  229. ssl_certificate ssl/8323933_www.wiseplanet.com.cn.pem;
  230. ssl_certificate_key ssl/8323933_www.wiseplanet.com.cn.key;
  231. ssl_session_timeout 5m;
  232. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  233. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  234. ssl_prefer_server_ciphers on;
  235. fastcgi_connect_timeout 600;
  236. fastcgi_send_timeout 600;
  237. fastcgi_read_timeout 600;
  238. }
  239. server {
  240. listen 443 ssl;
  241. listen [::]:443;
  242. ssl on;
  243. server_name www.wiseplanet.com.cn;
  244. root /game/website/afh5/1.0.1/;
  245. location ^~ /video/ {
  246. proxy_pass http://58.247.49.58:9988;
  247. proxy_redirect off;
  248. proxy_set_header Host $host;
  249. proxy_set_header X-Real-IP $remote_addr;
  250. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  251. }
  252. ssl_certificate ssl/8323933_www.wiseplanet.com.cn.pem;
  253. ssl_certificate_key ssl/8323933_www.wiseplanet.com.cn.key;
  254. ssl_session_timeout 5m;
  255. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  256. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  257. ssl_prefer_server_ciphers on;
  258. }
  259. server
  260. {
  261. listen 443 ssl;
  262. ssl on;
  263. server_name www.yibianshoucang.com;
  264. root /game/website/afh5/1.0.1/ybweb;
  265. location /api/ {
  266. proxy_pass http://47.122.0.171:9989/;
  267. proxy_redirect off;
  268. proxy_set_header Host $host;
  269. proxy_set_header X-Real-IP $remote_addr;
  270. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  271. }
  272. location ^~ /new_battle/ {
  273. proxy_pass http://127.0.0.1:7379;
  274. proxy_redirect off;
  275. proxy_set_header Host $host;
  276. proxy_set_header X-Real-IP $remote_addr;
  277. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  278. }
  279. ssl_certificate ssl/9475984_www.yibianshoucang.com.pem;
  280. ssl_certificate_key ssl/9475984_www.yibianshoucang.com.key;
  281. ssl_session_timeout 5m;
  282. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  283. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  284. ssl_prefer_server_ciphers on;
  285. }
  286. server
  287. {
  288. listen 443 ssl;
  289. ssl on;
  290. server_name admin.yibianshoucang.com;
  291. root /game/website/afh5/1.0.1/;
  292. location /api/ {
  293. proxy_pass http://47.122.0.171:9989/;
  294. proxy_redirect off;
  295. proxy_set_header Host $host;
  296. proxy_set_header X-Real-IP $remote_addr;
  297. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  298. }
  299. ssl_certificate ssl/9476239_admin.yibianshoucang.com.pem;
  300. ssl_certificate_key ssl/9476239_admin.yibianshoucang.com.key;
  301. ssl_session_timeout 5m;
  302. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  303. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  304. ssl_prefer_server_ciphers on;
  305. }
  306. server
  307. {
  308. listen 443 ssl;
  309. ssl on;
  310. server_name meta-chat.yibianshoucang.com;
  311. root /game/website/afh5/1.0.1/;
  312. location / {
  313. proxy_pass http://127.0.0.1:9900;
  314. proxy_http_version 1.1;
  315. proxy_set_header Upgrade $http_upgrade;
  316. proxy_set_header Connection "Upgrade";
  317. }
  318. ssl_certificate ssl/9486032_meta-chat.yibianshoucang.com.pem;
  319. ssl_certificate_key ssl/9486032_meta-chat.yibianshoucang.com.key;
  320. ssl_session_timeout 5m;
  321. ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
  322. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  323. ssl_prefer_server_ciphers on;
  324. }