/docker-nginx-ssl-php

⚠️ DEPRECATED ::: A nginx Docker Contanier with integrated php5-fpm

MIT LicenseMIT

Docker Nginx SSL PHP Container (based on marvambass/nginx-ssl-secure)

maintained by MarvAmBass

FAQ - All you need to know about the marvambass Containers

What is it

This Dockerfile (available as marvambass/nginx-ssl-php) gives you a completly secure running Nginx Container with php5-fpm.

It's based on the marvambass/nginx-ssl-secure Image

View in Docker Registry marvambass/nginx-ssl-php

View in GitHub MarvAmBass/docker-nginx-ssl-php

Environment variables and defaults

  • DH_SIZE
  • default: 4096 (which takes a long time to create), for demo or unsecure applications you can use smaller values like 512

Using the marvambass/nginx-ssl-php Container

Add the following lines to your nginx server config:

index index.php index.html index.htm;

location ~ \.php$ {
  try_files $uri =404;
  fastcgi_split_path_info ^(.+\.php)(/.+)$;
  fastcgi_pass unix:/var/run/php5-fpm.sock;
  fastcgi_index index.php;
  fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  include fastcgi_params;
}