Sin descripción

default 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ##
  2. # You should look at the following URL's in order to grasp a solid understanding
  3. # of Nginx configuration files in order to fully unleash the power of Nginx.
  4. # http://wiki.nginx.org/Pitfalls
  5. # http://wiki.nginx.org/QuickStart
  6. # http://wiki.nginx.org/Configuration
  7. #
  8. # Generally, you will want to move this file somewhere, and start with a clean
  9. # file but keep this around for reference. Or just disable in sites-enabled.
  10. #
  11. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
  12. ##
  13. # Default server configuration
  14. #
  15. server {
  16. listen 80 default_server;
  17. listen [::]:80 default_server;
  18. # SSL configuration
  19. #
  20. # listen 443 ssl default_server;
  21. # listen [::]:443 ssl default_server;
  22. #
  23. # Note: You should disable gzip for SSL traffic.
  24. # See: https://bugs.debian.org/773332
  25. #
  26. # Read up on ssl_ciphers to ensure a secure configuration.
  27. # See: https://bugs.debian.org/765782
  28. #
  29. # Self signed certs generated by the ssl-cert package
  30. # Don't use them in a production server!
  31. #
  32. # include snippets/snakeoil.conf;
  33. root /home/Web/WebUI;
  34. # Add index.php to the list if you are using PHP
  35. index index.html index.htm index.nginx-debian.html;
  36. server_name _;
  37. location / {
  38. # First attempt to serve request as file, then
  39. # as directory, then fall back to displaying a 404.
  40. try_files $uri $uri/ =404;
  41. }
  42. location /fileapi/{
  43. proxy_pass http://localhost:28000/fileserverapi/;
  44. proxy_cookie_path / /fileapi;
  45. client_max_body_size 1000m;
  46. }
  47. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  48. #
  49. #location ~ \.php$ {
  50. # include snippets/fastcgi-php.conf;
  51. #
  52. # # With php7.0-cgi alone:
  53. # fastcgi_pass 127.0.0.1:9000;
  54. # # With php7.0-fpm:
  55. # fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  56. #}
  57. # deny access to .htaccess files, if Apache's document root
  58. # concurs with nginx's one
  59. #
  60. #location ~ /\.ht {
  61. # deny all;
  62. #}
  63. }
  64. # Virtual Host configuration for example.com
  65. #
  66. # You can move that to a different file under sites-available/ and symlink that
  67. # to sites-enabled/ to enable it.
  68. #
  69. server {
  70. listen 81 ;
  71. listen [::]:81 ;
  72. root /home/Web/WebUI.BI;
  73. index index.html index.htm index.nginx-debian.html;
  74. server_name _;
  75. location / {
  76. try_files $uri $uri/ =404;
  77. }
  78. }