2021-03-27 17:21:45 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
2021-03-28 14:38:22 +02:00
|
|
|
root /var/www/html;
|
2021-03-27 17:21:45 +01:00
|
|
|
index index.html;
|
|
|
|
|
2021-03-28 14:38:22 +02:00
|
|
|
error_log /var/log/nginx/drupal.error.log;
|
|
|
|
access_log /var/log/nginx/drupal.access.log combined;
|
2021-03-27 17:21:45 +01:00
|
|
|
|
|
|
|
|
|
|
|
location ~ \.php$ {
|
|
|
|
try_files $uri =404;
|
|
|
|
include /etc/nginx/fastcgi_params;
|
|
|
|
fastcgi_send_timeout 300s;
|
|
|
|
fastcgi_read_timeout 300s;
|
2021-03-28 14:38:22 +02:00
|
|
|
fastcgi_pass app-fpm:9000;
|
2021-03-27 17:21:45 +01:00
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
autoindex on ;
|
|
|
|
autoindex_exact_size off;
|
|
|
|
try_files $uri index.html /index.php?$query_string;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|