Advertisement
Guest User

default file

a guest
May 1st, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  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 default_server;
  10. # listen [::]:443 ssl default_server;
  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 [MYONIONIP].onion;
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement