nginx.conf 358 B

1234567891011121314151617
  1. upstream backend{
  2. server 192.168.80.1:8070;
  3. }
  4. server {
  5. listen 81;
  6. listen [::]:81;
  7. root /usr/share/nginx/html;
  8. server_name _;
  9. location ~ / {
  10. if ($request_uri ~* (api)) {
  11. proxy_pass http://backend;
  12. }
  13. try_files $uri $uri/ /index.html;
  14. }
  15. }