mirror of
https://github.com/linuxserver/docker-baseimage-alpine-nginx.git
synced 2026-02-20 01:03:46 +08:00
Merge pull request #5 from linuxserver/aptalca-patch-2
add fastcgi parameter to image
This commit is contained in:
commit
d697108915
@ -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/ /
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user