rainloop.conf 698 B

123456789101112131415161718192021222324252627282930
  1. server {
  2. listen 80;
  3. server_name webmail.example.com;
  4. root /var/www/html/rainloop;
  5. access_log /var/log/rainloop/access.log;
  6. error_log /var/log/rainloop/error.log;
  7. index index.php;
  8. location / {
  9. try_files $uri $uri/ /index.php?$query_string;
  10. }
  11. location ~ \.php$ {
  12. fastcgi_index index.php;
  13. fastcgi_split_path_info ^(.+\.php)(.*)$;
  14. fastcgi_keep_conn on;
  15. fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
  16. include /etc/nginx/fastcgi_params;
  17. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  18. }
  19. location ~ /\.ht {
  20. deny all;
  21. }
  22. location ^~ /data {
  23. deny all;
  24. }
  25. }