diff --git a/Dockerfile b/Dockerfile index bca396f..7166567 100755 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,8 @@ RUN \ php5 \ php5-cli \ php5-json \ - php5-fpm + php5-fpm && \ + sed -i '1s/^/fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n/' /etc/nginx/fastcgi_params COPY root/ / diff --git a/root/defaults/default b/root/defaults/default index 0820d7b..9d44f07 100755 --- a/root/defaults/default +++ b/root/defaults/default @@ -25,7 +25,6 @@ server { #fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include /etc/nginx/fastcgi_params; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }