123456789101112131415161718192021222324252627282930 |
- server {
- listen 80;
- server_name webmail.example.com;
- root /var/www/html/rainloop;
- access_log /var/log/rainloop/access.log;
- error_log /var/log/rainloop/error.log;
- index index.php;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location ~ \.php$ {
- fastcgi_index index.php;
- fastcgi_split_path_info ^(.+\.php)(.*)$;
- fastcgi_keep_conn on;
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- include /etc/nginx/fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- location ~ /\.ht {
- deny all;
- }
- location ^~ /data {
- deny all;
- }
- }
|