mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-26 16:42:27 +03:00
33 lines
786 B
Nginx Configuration File
33 lines
786 B
Nginx Configuration File
server {
|
|
listen 80 default;
|
|
|
|
server_name localhost;
|
|
|
|
client_max_body_size 108M;
|
|
|
|
access_log /var/log/nginx/application.access.log;
|
|
|
|
root /var/www/html;
|
|
|
|
index index.php index.html;
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$args;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
try_files $uri =404;
|
|
fastcgi_pass php-fpm:9000;
|
|
fastcgi_split_path_info ^(.+\.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;
|
|
fastcgi_index index.php;
|
|
include fastcgi_params;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
}
|