very secured Nginx with PHP and secure SSL - ready for production
5.5K
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
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;
}
Content type
Image
Digest
sha256:b6d1aaec3…
Size
89.5 MB
Last updated
over 9 years ago
docker pull marvambass/nginx-ssl-php