-
Notifications
You must be signed in to change notification settings - Fork 107
Open
Description
Hi,
Is it possible at the moment to serve PHP site with this image?
I have NGINX config like this:
server {
listen 8006;
server_name _;
root /location/;
index index.php index.html index.htm default.html default.htm;
client_max_body_size 100M;
location / {
try_files $uri $uri/ /index.php?$args;
}
# deny running scripts inside writable directories
location ~* /(images|cache|media|logs|tmp)/.*\.(php|pl|py|jsp|asp|sh|cgi)$ {
return 403;
error_page 403 /403_error.html;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
# caching of files
location ~* \.(ico|pdf|flv)$ {
expires 1y;
}
location ~* \.(js|css|png|jpg|jpeg|gif|swf|xml|txt)$ {
expires 14d;
}
}
When I run the container, it does not seem to work. Does not even print logs.
Metadata
Metadata
Assignees
Labels
No labels