http7100.conf 545 B

1234567891011121314151617181920212223242526
  1. server {
  2. listen 7100;
  3. charset utf-8;
  4. location ^~ / {
  5. alias /home/admin/project/exam-score-statistic/static-new/dist/;
  6. try_files $uri $uri/ /index.html;
  7. }
  8. location ^~ /js/ {
  9. alias /home/admin/project/exam-score-statistic/static-new/dist/js/;
  10. try_files $uri $uri/ =404;
  11. }
  12. location /file/ {
  13. alias /home/admin/project/exam-score-statistic/static/;
  14. }
  15. location ^~ /api/ {
  16. proxy_pass http://192.168.10.39:7180;
  17. proxy_set_header X-Real-IP $remote_addr;
  18. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  19. }
  20. }