nginx.conf 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #user nobody;
  2. worker_processes 1;
  3. #error_log logs/error.log;
  4. #error_log logs/error.log notice;
  5. #error_log logs/error.log info;
  6. #pid logs/nginx.pid;
  7. events {
  8. worker_connections 1024;
  9. }
  10. http {
  11. include mime.types;
  12. default_type application/octet-stream;
  13. #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
  14. # '$status $body_bytes_sent "$http_referer" '
  15. # '"$http_user_agent" "$http_x_forwarded_for"';
  16. #access_log logs/access.log main;
  17. sendfile on;
  18. #tcp_nopush on;
  19. #keepalive_timeout 0;
  20. keepalive_timeout 65;
  21. #gzip on;
  22. client_max_body_size 30m;
  23. server {
  24. listen 10900;
  25. server_name localhost;
  26. charset utf-8;
  27. location ^~/business {
  28. proxy_pass http://192.168.1.212:10901/upcloud-rdc-tms-business-service;
  29. proxy_set_header X-Real-IP $remote_addr;
  30. }
  31. location ^~/maindata {
  32. proxy_pass http://192.168.1.212:10901/upcloud-rdc-tms-maindata-service;
  33. proxy_set_header X-Real-IP $remote_addr;
  34. }
  35. #error_page 404 /404.html;
  36. # redirect server error pages to the static page /50x.html
  37. #
  38. error_page 500 502 503 504 /50x.html;
  39. location = /50x.html {
  40. root html;
  41. }
  42. }
  43. # images port
  44. server {
  45. listen 10139;
  46. server_name localhost;
  47. #charset koi8-r;
  48. #access_log /var/log/nginx/host.access.log main;
  49. location / {
  50. root /usr/local/images/;
  51. }
  52. }
  53. }