30 lines
726 B
Nginx Configuration File
30 lines
726 B
Nginx Configuration File
|
server {
|
||
|
listen 80 default;
|
||
|
|
||
|
client_max_body_size 108M;
|
||
|
|
||
|
access_log /var/log/nginx/application.access.log;
|
||
|
|
||
|
root /docker/.;
|
||
|
index index.php;
|
||
|
|
||
|
# try to serve file directly, fallback to index.php
|
||
|
location / {
|
||
|
try_files $uri /index.php$is_args$args;
|
||
|
}
|
||
|
|
||
|
if (!-e $request_filename) {
|
||
|
rewrite ^.*$ /index.php last;
|
||
|
}
|
||
|
|
||
|
location ~ \.php$ {
|
||
|
fastcgi_pass php-fpm:9000;
|
||
|
fastcgi_index index.php;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";
|
||
|
fastcgi_buffers 16 16k;
|
||
|
fastcgi_buffer_size 32k;
|
||
|
include fastcgi_params;
|
||
|
}
|
||
|
}
|