Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. server {
  2. listen 80 default_server;
  3. listen [::]:80 default_server;
  4.  
  5.  
  6. # SSL configuration
  7. #
  8. # listen 443 ssl default_server;
  9. # listen [::]:443 ssl default_server;
  10. #
  11. # Note: You should disable gzip for SSL traffic.
  12. # See: https://bugs.debian.org/773332
  13. #
  14. # Read up on ssl_ciphers to ensure a secure configuration.
  15. # See: https://bugs.debian.org/765782
  16. #
  17. # Self signed certs generated by the ssl-cert package
  18. # Don't use them in a production server!
  19. #
  20. # include snippets/snakeoil.conf;
  21.  
  22. root /var/www/html;
  23. server_name _;
  24.  
  25. location / {
  26. # First attempt to serve request as file, then
  27. # as directory, then fall back to displaying a 404.
  28. try_files $uri $uri/ =404;
  29. }
  30.  
  31. location /images/ {
  32. alias /home/pubftp/ftupser/;
  33. sendfile on;
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement