tkdhanasekar

/etc/nginx/sites-available/default

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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×