http7700.conf 634 B

1234567891011121314151617181920212223242526
  1. server {
  2. listen 7700;
  3. charset utf-8;
  4. location ~* (js|css|img|fonts|models) {
  5. root /home/admin/project/union-question/static-new/admin/dist;
  6. }
  7. location / {
  8. root /home/admin/project/union-question/static-new/admin/dist;
  9. index index.html;
  10. }
  11. location ^~ /admin/ {
  12. rewrite ^/(.*) /index.html break;
  13. root /home/admin/project/union-question/static-new/admin/dist;
  14. }
  15. location ^~ /api/uq_basic/ {
  16. proxy_pass http://192.168.10.39:7001;
  17. proxy_set_header X-Real-IP $remote_addr;
  18. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  19. }
  20. }