mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 22:55:39 +00:00
add nginx-php image
This commit is contained in:
6
nginx-php/rootfs/nginx/conf.d/php.conf
Normal file
6
nginx-php/rootfs/nginx/conf.d/php.conf
Normal file
@ -0,0 +1,6 @@
|
||||
location ~ \.php$ {
|
||||
fastcgi_index index.php;
|
||||
fastcgi_pass unix:/php/run/php-fpm.sock;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
include /nginx/conf/fastcgi_params;
|
||||
}
|
31
nginx-php/rootfs/nginx/conf/nginx.conf
Normal file
31
nginx-php/rootfs/nginx/conf/nginx.conf
Normal file
@ -0,0 +1,31 @@
|
||||
worker_processes auto;
|
||||
pid /nginx/run/nginx.pid;
|
||||
daemon off;
|
||||
|
||||
events {
|
||||
worker_connections 2048;
|
||||
use epoll;
|
||||
}
|
||||
|
||||
http {
|
||||
include /nginx/conf/mime.types;
|
||||
default_type application/octet-stream;
|
||||
|
||||
access_log /nginx/logs/access.log combined;
|
||||
error_log /nginx/logs/error.log error;
|
||||
|
||||
client_max_body_size <UPLOAD_MAX_SIZE>;
|
||||
|
||||
aio threads;
|
||||
sendfile on;
|
||||
keepalive_timeout 15;
|
||||
keepalive_disable msie6;
|
||||
keepalive_requests 100;
|
||||
tcp_nopush on;
|
||||
tcp_nodelay on;
|
||||
server_tokens off;
|
||||
|
||||
gzip off
|
||||
|
||||
include /nginx/sites-enabled/*.conf;
|
||||
}
|
Reference in New Issue
Block a user