maintained by MarvAmBass
FAQ - All you need to know about the marvambass Containers
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
- DH_SIZE
- default: 4096 (which takes a long time to create), for demo or unsecure applications you can use smaller values like 512
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;
}