26 lines
524 B
Plaintext
26 lines
524 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
|
|
server_name _;
|
|
|
|
root "/code/public";
|
|
index index.php;
|
|
|
|
client_max_body_size 50m;
|
|
|
|
access_log /docker.stdout;
|
|
error_log /docker.stderr warn;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$query_string;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
|
fastcgi_pass php;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
|
fastcgi_read_timeout 600;
|
|
}
|
|
}
|