34 lines
690 B
Plaintext
34 lines
690 B
Plaintext
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
root /app/public;
|
|
|
|
index index.php;
|
|
|
|
error_log /dev/stdout;
|
|
access_log /dev/stdout;
|
|
|
|
location / {
|
|
try_files $uri /index.php$is_args$args;
|
|
}
|
|
|
|
location ~ ^/index\.php(/|$) {
|
|
fastcgi_pass localhost:9000;
|
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
|
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
|
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
|
|
|
fastcgi_buffer_size 128k;
|
|
fastcgi_buffers 4 256k;
|
|
fastcgi_busy_buffers_size 256k;
|
|
|
|
internal;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
return 404;
|
|
}
|
|
}
|