Utilise php-fpm

This commit is contained in:
2016-09-27 17:42:22 +02:00
parent 5701ed6f97
commit 9e857a9006
6 changed files with 1989 additions and 10 deletions

32
config/nginx.conf Normal file
View File

@@ -0,0 +1,32 @@
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
server {
listen 80;
location / {
root /var/www/html;
autoindex on;
index index.php index.html index.htm;
}
# Pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
location ~ \.php$ {
root /var/www/html;
fastcgi_pass php:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html$fastcgi_script_name;
fastcgi_read_timeout 180;
include fastcgi_params;
}
}
}