Installer/Updater
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.8 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  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. # https://www.nginx.com/resources/wiki/start/
  5. # https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
  6. # https://wiki.debian.org/Nginx/DirectoryStructure
  7. #
  8. # In most cases, administrators will remove this file from sites-enabled/ and
  9. # leave it as reference inside of sites-available where it will continue to be
  10. # updated by the nginx packaging team.
  11. #
  12. # This file will automatically load configuration files provided by other
  13. # applications, such as Drupal or Wordpress. These applications will be made
  14. # available underneath a path with that package name, such as /drupal8.
  15. #
  16. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples.
  17. ##
  18. # Default server configuration
  19. #
  20. server {
  21. listen 8080 default_server;
  22. listen [::]:8080 default_server;
  23. #add_header X-Content-Type-Options nosniff;
  24. root /srv/www/distro;
  25. # Add index.php to the list if you are using PHP
  26. index index.html index.htm index.nginx-debian.html;
  27. server_name _;
  28. location / {
  29. # First attempt to serve request as file, then
  30. # as directory, then fall back to displaying a 404.
  31. try_files $uri $uri/ =404;
  32. index index.html index.php;
  33. }
  34. # pass PHP scripts to FastCGI server
  35. #
  36. location ~ \.php$ {
  37. include snippets/fastcgi-php.conf;
  38. fastcgi_pass unix:/run/php/php-fpm.sock;
  39. }
  40. location ~ /\.ht {
  41. deny all;
  42. }
  43. }
  44. server {
  45. listen 9090 default_server;
  46. listen [::]:9090 default_server;
  47. #add_header X-Content-Type-Options nosniff;
  48. root /srv/www/distro;
  49. # Add index.php to the list if you are using PHP
  50. index index.html index.htm index.nginx-debian.html;
  51. server_name _;
  52. location / {
  53. #proxy_pass http://192.168.0.100:80;
  54. proxy_pass http://192.168.200.124:80;
  55. }
  56. }