30 lines
660 B
Nginx Configuration File
30 lines
660 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
root /var/www/html;
|
|
index index.html;
|
|
|
|
error_log /var/log/nginx/drupal.error.log;
|
|
access_log /var/log/nginx/drupal.access.log combined;
|
|
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
include /etc/nginx/fastcgi_params;
|
|
fastcgi_send_timeout 300s;
|
|
fastcgi_read_timeout 300s;
|
|
fastcgi_pass app-fpm:9000;
|
|
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;
|
|
}
|
|
}
|
|
|
|
|
|
|