server { listen 8080 default_server; server_name _; access_log /var/log/rainloop/access.log; error_log /var/log/rainloop/error.log; large_client_header_buffers 4 32k; client_max_body_size 50M; charset utf-8; root /opt/rainloop; index index.php; # deny access to .htaccess files location ~ /\.ht { deny all; } # rainloop standard security location ^~ /data { deny all; } location / { try_files $uri $uri/ /index.php?$query_string; } location ~ \.php$ { fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$; fastcgi_keep_conn on; include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }