-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.conf
More file actions
47 lines (40 loc) · 1.47 KB
/
site.conf
File metadata and controls
47 lines (40 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
server {
listen 80;
server_name crmonolith.devel;
root /application/cr3-monolith/public;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
location / {
# try to serve file directly, fallback to index.php
try_files $uri /index.php$is_args$args;
}
location ~ ^/index\.php(/|$) {
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
proxy_read_timeout 3600;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
index index.php app_dev.php;
fastcgi_index index.php;
fastcgi_read_timeout 240;
fastcgi_pass sf-modular-php8:9000;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SERVER_NAME $http_host;
fastcgi_param PATH_INFO $fastcgi_script_name;
fastcgi_ignore_client_abort on;
fastcgi_buffers 8 16k;
fastcgi_buffer_size 32k;
client_max_body_size 20m;
client_body_buffer_size 128k;
internal;
}
# return 404 for all other php files not matching the front controller
# this prevents access to other php files you don't want to be accessible.
location ~ \.php$ {
return 404;
}
location ~ /\.ht {
deny all;
}
}