exam_reserve.conf 729 B

1234567891011121314151617181920212223242526
  1. server {
  2. listen 8300;
  3. charset utf-8;
  4. location / {
  5. root /home/qmth/project/exam-reserve/web/dist/;
  6. try_files $uri $uri/ /index.html;
  7. }
  8. location ^~ /wap/ {
  9. alias /home/qmth/project/exam-reserve/wap/dist/;
  10. try_files $uri $uri/ /wap/index.html;
  11. }
  12. location ^~ /file/ {
  13. alias /home/qmth/project/exam-reserve/static/file/;
  14. add_header Access-Control-Allow-Origin *;
  15. }
  16. location ^~ /api/ {
  17. proxy_pass http://localhost:8301;
  18. proxy_set_header Host $host;
  19. proxy_set_header X-Real-IP $remote_addr;
  20. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  21. }
  22. }