数据可视化大屏
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

53 行
1.2KB

  1. upstream api{
  2. server 112.33.111.160:8081;
  3. }
  4. server {
  5. listen 80;
  6. listen [::]:80;
  7. server_name localhost;
  8. #access_log /var/log/nginx/host.access.log main;
  9. location /api/ {
  10. proxy_pass http://api;
  11. }
  12. location / {
  13. root /usr/share/nginx/html;
  14. index index.html index.htm;
  15. }
  16. #error_page 404 /404.html;
  17. # redirect server error pages to the static page /50x.html
  18. #
  19. error_page 500 502 503 504 /50x.html;
  20. location = /50x.html {
  21. root /usr/share/nginx/html;
  22. }
  23. # proxy the PHP scripts to Apache listening on 127.0.0.1:80
  24. #
  25. #location ~ \.php$ {
  26. # proxy_pass http://127.0.0.1;
  27. #}
  28. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  29. #
  30. #location ~ \.php$ {
  31. # root html;
  32. # fastcgi_pass 127.0.0.1:9000;
  33. # fastcgi_index index.php;
  34. # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
  35. # include fastcgi_params;
  36. #}
  37. # deny access to .htaccess files, if Apache's document root
  38. # concurs with nginx's one
  39. #
  40. #location ~ /\.ht {
  41. # deny all;
  42. #}
  43. }