server { listen 80; root /var/www/html/frontend/web/; index index.php; charset utf-8; client_max_body_size 10M; client_body_timeout 1200s; client_header_timeout 1200s; keepalive_timeout 1200s; send_timeout 1200s; location / { try_files $uri $uri/ /index.php?$args; } location = /favicon.ico { log_not_found off; access_log off; try_files $uri =404; } location ~ ^/(protected|framework|themes/\w+/views) { deny all; } location ~* \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ { try_files $uri =404; access_log off; log_not_found off; } location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(.*)$; set $fsn $fastcgi_script_name; if (-f $document_root$fastcgi_script_name) { set $fsn $fastcgi_script_name; } fastcgi_pass localhost:9000; include fastcgi_params; fastcgi_read_timeout 1200s; fastcgi_param SCRIPT_FILENAME $document_root$fsn; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fsn; try_files $uri =404; } location ~ /\. { deny all; } }