Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  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.  
  14. # Default server configuration
  15. #
  16. server {
  17. listen 80 default_server;
  18. listen [::]:80 default_server;
  19.  
  20. # SSL configuration
  21. # you uncommented this on the advice on a letsencrypt forum thread, and it didn't help
  22. # listen 443 ssl default_server;
  23. # listen [::]:443 ssl default_server;
  24. #
  25. # Note: You should disable gzip for SSL traffic.
  26. # See: https://bugs.debian.org/773332
  27. #
  28. # Read up on ssl_ciphers to ensure a secure configuration.
  29. # See: https://bugs.debian.org/765782
  30. #
  31. # Self signed certs generated by the ssl-cert package
  32. # Don't use them in a production server!
  33. #
  34. # include snippets/snakeoil.conf;
  35.  
  36. root /var/www/index;
  37. # Add index.php to the list if you are using PHP
  38. index index.html index.htm index.nginx-debian.html;
  39.  
  40. server_name greg.party www.greg.party;
  41.  
  42. location / {
  43. # First attempt to serve request as file, then
  44. # as directory, then fall back to displaying a 404.
  45. try_files $uri $uri/ =404;
  46. }
  47.  
  48. # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  49. #
  50. #location ~ \.php$ {
  51. # include snippets/fastcgi-php.conf;
  52. #
  53. # # With php7.0-cgi alone:
  54. # fastcgi_pass 127.0.0.1:9000;
  55. # # With php7.0-fpm:
  56. # fastcgi_pass unix:/run/php/php7.0-fpm.sock;
  57. #}
  58.  
  59. # deny access to .htaccess files, if Apache's document root
  60. # concurs with nginx's one
  61. #
  62. #location ~ /\.ht {
  63. # deny all;
  64. #}
  65. }
  66.  
  67.  
  68. # Virtual Host configuration for example.com
  69. #
  70. # You can move that to a different file under sites-available/ and symlink that
  71. # to sites-enabled/ to enable it.
  72. #
  73. #server {
  74. # listen 80;
  75. # listen [::]:80;
  76. #
  77. # server_name example.com;
  78. #
  79. # root /var/www/example.com;
  80. # index index.html;
  81. #
  82. # location / {
  83. # try_files $uri $uri/ =404;
  84. # }
  85. #}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement