Guest User

Untitled

a guest
Jul 14th, 2020
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. server {
  2. listen 8943 default_server ssl;
  3. listen [::]:8943 default_server ssl;
  4. ssl on;
  5. ssl_certificate /etc/letsencrypt/live/REDACTED-0001/fullchain.pem;
  6. ssl_certificate_key /etc/letsencrypt/live/REDACTED-0001/privkey.pem;
  7. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  8. ssl_ciphers HIGH:!aNULL:!MD5;
  9. ssl_buffer_size 0;
  10. # SSL configuration
  11. #
  12. # listen 443 ssl default_server;
  13. # listen [::]:443 ssl default_server;
  14. #
  15. # Note: You should disable gzip for SSL traffic.
  16. # See: https://bugs.debian.org/773332
  17. #
  18. # Read up on ssl_ciphers to ensure a secure configuration.
  19. # See: https://bugs.debian.org/765782
  20. #
  21. # Self signed certs generated by the ssl-cert package
  22. # Don't use them in a production server!
  23. #
  24. # include snippets/snakeoil.conf;
  25.  
  26. root /var/www/nginxlive;
  27.  
  28. # Add index.php to the list if you are using PHP
  29. index index.html index.htm index.nginx-debian.html index.php;
  30.  
  31. server_name localhost;
  32. proxy_set_header Connection '';
  33. proxy_http_version 1.1;
  34. chunked_transfer_encoding off;
  35. proxy_buffering off;
  36. proxy_cache off;
  37. proxy_buffer_size 0;
  38.  
  39. location / {
  40. # First attempt to serve request as file, then
  41. # as directory, then fall back to displaying a 404.
  42. try_files $uri $uri/ =404;
  43. }
  44.  
  45. # pass PHP scripts to FastCGI server
  46. #
  47. location ~ \.php$ {
  48. include snippets/fastcgi-php.conf;
  49.  
  50. # With php-fpm (or other unix sockets):
  51. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  52. # With php-cgi (or other tcp sockets):
  53. #fastcgi_pass 127.0.0.1:9000;
  54. }
  55.  
  56. # deny access to .htaccess files, if Apache's document root
  57. # concurs with nginx's one
  58. #
  59. #location ~ /\.ht {
  60. # deny all;
  61. #}
  62. }
  63.  
  64.  
  65. # Virtual Host configuration for example.com
  66. #
  67. # You can move that to a different file under sites-available/ and symlink that
  68. # to sites-enabled/ to enable it.
  69. #
  70. #server {
  71. # listen 80;
  72. # listen [::]:80;
  73. #
  74. # server_name example.com;
  75. #
  76. # root /var/www/example.com;
  77. # index index.html;
  78. #
  79. # location / {
  80. # try_files $uri $uri/ =404;
  81. # }
  82. #}
Add Comment
Please, Sign In to add comment