default.conf 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name localhost;
  5. #access_log /var/log/nginx/host.access.log main;
  6. location / {
  7. root /usr/share/nginx/html;
  8. index index.html index.htm;
  9. }
  10. #error_page 404 /404.html;
  11. # redirect server error pages to the static page /50x.html
  12. #
  13. error_page 500 502 503 504 /50x.html;
  14. location = /50x.html {
  15. root /usr/share/nginx/html;
  16. }
  17. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  18. #
  19. #location ~ \.php$ {
  20. # proxy_pass http://127.0.0.1;
  21. #}
  22. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  23. #
  24. #location ~ \.php$ {
  25. # root html;
  26. # fastcgi_pass 127.0.0.1:9000;
  27. # fastcgi_index index.php;
  28. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  29. # include fastcgi_params;
  30. #}
  31. # deny access to .htaccess files, if Apache's document root
  32. # concurs with nginx's one
  33. #
  34. #location ~ /\.ht {
  35. # deny all;
  36. #}
  37. location /supplier/ {
  38. proxy_pass http://3dshow-supplier-dev:8888/supplier/;
  39. }
  40. location /customer/ {
  41. proxy_pass http://3dshow-customer-dev:8888/customer/;
  42. }
  43. location /supplyUser/ {
  44. proxy_pass http://3dshow-supply-user-dev:8908/usercenter/;
  45. }
  46. location /customerUser/ {
  47. proxy_pass http://3dshow-customer-user-dev:8908/usercenter/;
  48. }
  49. # 用户接口
  50. # location /usercenter/ {
  51. # proxy_pass http://box-usercenter:8908/usercenter/;
  52. # }
  53. #nats-exporter
  54. # location /natsexporter/ {
  55. # proxy_pass http://nats-exporter:7777/;
  56. # }
  57. }