Advertisement
Guest User

Untitled

a guest
Jan 31st, 2022
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. server {
  2. listen 80;
  3. listen [::]:80;
  4. server_name mail.raveolution.me;
  5. root /var/www/html/mail;
  6. index index.php index.html index.htm;
  7.  
  8. error_log /var/log/nginx/roundcube.error;
  9. access_log /var/log/nginx/roundcube.access;
  10.  
  11. location / {
  12. try_files $uri $uri/ /index.php;
  13. }
  14.  
  15. location ~ \.php$ {
  16. try_files $uri =404;
  17. fastcgi_pass unix:/run/php/php8.1-fpm.sock;
  18. fastcgi_index index.php;
  19. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  20. include fastcgi_params;
  21. }
  22.  
  23. location ~ /.well-known/acme-challenge {
  24. allow all;
  25. }
  26. location ~ ^/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
  27. deny all;
  28. }
  29. location ~ ^/(bin|SQL)/ {
  30. deny all;
  31. }
  32. # A long browser cache lifetime can speed up repeat visits to your page
  33. location ~* \.(jpg|jpeg|gif|png|webp|svg|woff|woff2|ttf|css|js|ico|xml)$ {
  34. access_log off;
  35. log_not_found off;
  36. expires 360d;
  37. }
  38. }
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement