http8700.conf 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. server {
  2. listen 8700;
  3. charset utf-8;
  4. location = / {
  5. rewrite / /oe-wap/ last;
  6. }
  7. location ^~ /electron-config/ {
  8. alias /home/admin/project/examcloud/static-new/electron-config/;
  9. }
  10. location = /photo-upload {
  11. rewrite /photo-upload /photo-upload/ last;
  12. }
  13. location ^~ /photo-upload {
  14. alias /home/admin/project/examcloud/static-new/photo-upload/dist/;
  15. try_files $uri $uri/ /photo-upload/index.html;
  16. }
  17. location = /admin-web {
  18. rewrite /admin-web /admin-web/ last;
  19. }
  20. location ^~ /admin-web {
  21. alias /home/admin/project/examcloud/static-new/examcloud-admin-web/dist/;
  22. try_files $uri $uri/ /admin-web/index.html;
  23. }
  24. location = /oe-wap {
  25. rewrite /oe-wap /oe-wap/ last;
  26. }
  27. location ^~ /oe-wap {
  28. alias /home/admin/project/examcloud/static-new/student-client-wap/dist/;
  29. try_files $uri $uri/ /oe-wap/index.html;
  30. }
  31. location = /oe-web {
  32. rewrite /oe-web /oe-web/ last;
  33. }
  34. location ^~ /oe-web {
  35. alias /home/admin/project/examcloud/static-new/student-client/dist/;
  36. try_files $uri $uri/ /oe-web/index.html;
  37. }
  38. }