knowledge_labeling_ui.conf 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. server {
  2. listen 80;
  3. server_name localhost;
  4. #charset koi8-r;
  5. #access_log logs/host.access.log main;
  6. # 匹配 api 路由的反向代理到API服务
  7. location ^~/bok {
  8. proxy_pass http://bok.seec.seecoder.cn/;
  9. }
  10. location ^~/neo {
  11. proxy_pass http://bok-neo-frontend.seecoder.cn/;
  12. }
  13. #根据路由设置,避免出现404
  14. location / {
  15. root /var/www/html/dist;
  16. try_files $uri $uri/ @router;
  17. index index.html;
  18. }
  19. location @router {
  20. rewrite ^.*$ /index.html last;
  21. }
  22. #error_page 404 /404.html;
  23. # redirect server error pages to the static page /50x.html
  24. #
  25. error_page 500 502 503 504 /50x.html;
  26. location = /50x.html {
  27. root html;
  28. }
  29. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  30. #
  31. #location ~ \.php$ {
  32. # proxy_pass http://127.0.0.1;
  33. #}
  34. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  35. #
  36. #location ~ \.php$ {
  37. # root html;
  38. # fastcgi_pass 127.0.0.1:9000;
  39. # fastcgi_index index.php;
  40. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  41. # include fastcgi_params;
  42. #}
  43. # deny access to .htaccess files, if Apache's document root
  44. # concurs with nginx's one
  45. #
  46. #location ~ /\.ht {
  47. # deny all;
  48. #}
  49. }