Skip to content

Commit

Permalink
修改site配置
Browse files Browse the repository at this point in the history
  • Loading branch information
kulou committed Jun 21, 2023
1 parent 5e4e1b8 commit 3aabe66
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion example/docker-compose-php-fpm/site.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
upstream webserver_0 {
server php-fpm:9000 weight=1 max_fails=100 fail_timeout=300;
}

server {
listen 80;
index index.php index.html;
Expand All @@ -15,7 +19,7 @@ server {
}

location ~ .+\.php($|/) {
fastcgi_pass php-fpm:9000;
fastcgi_pass webserver_0;
fastcgi_index index.php?IF_REWRITE=1;
include fastcgi_params;
set $script $uri;
Expand All @@ -28,6 +32,13 @@ server {
fastcgi_param SCRIPT_FILENAME $document_root/$script;
fastcgi_param SCRIPT_NAME $script;
access_log off;

fastcgi_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
}

}

0 comments on commit 3aabe66

Please sign in to comment.