nginx template hinzugefügt

This commit is contained in:
bmen 2019-09-30 08:22:32 +00:00
parent a450e28b7d
commit 39eee8ba7a
1 changed files with 23 additions and 0 deletions

23
mysite.template Normal file
View File

@ -0,0 +1,23 @@
server {
listen 80 default;
access_log /var/log/nginx/application.access.log;
root /var/www/html;
index index.php;
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;
}
}