|
| 1 | +fastcgi_param QUERY_STRING $query_string; |
| 2 | +fastcgi_param REQUEST_METHOD $request_method; |
| 3 | +fastcgi_param CONTENT_TYPE $content_type; |
| 4 | +fastcgi_param CONTENT_LENGTH $content_length; |
| 5 | + |
| 6 | +fastcgi_param PATH_INFO $fastcgi_script_name; |
| 7 | +fastcgi_param SCRIPT_NAME $fastcgi_script_name; |
| 8 | +fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
| 9 | +fastcgi_param REQUEST_URI $request_uri; |
| 10 | +fastcgi_param DOCUMENT_URI $document_uri; |
| 11 | +fastcgi_param DOCUMENT_ROOT $document_root; |
| 12 | +fastcgi_param SERVER_PROTOCOL $server_protocol; |
| 13 | +fastcgi_param HTTPS $https if_not_empty; |
| 14 | + |
| 15 | +fastcgi_param GATEWAY_INTERFACE CGI/1.1; |
| 16 | +fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; |
| 17 | + |
| 18 | +fastcgi_param REMOTE_ADDR $remote_addr; |
| 19 | +fastcgi_param REMOTE_PORT $remote_port; |
| 20 | +fastcgi_param SERVER_ADDR $server_addr; |
| 21 | + |
| 22 | +# SERVER_PORT needs to be commented out and has to be determined from other fields (e.g. HTTP_HOST) |
| 23 | +# Otherwise it points invalid port when container port is mapped to different port on host machine, |
| 24 | +# which might result with invalid links generated in a PHP app. |
| 25 | +#fastcgi_param SERVER_PORT $server_port; |
| 26 | + |
| 27 | +# Using $http_host instead of $server_name - $server_name doesn't work correctly when using regexps in vhosts' server_name declaration. |
| 28 | +#fastcgi_param SERVER_NAME $server_name; |
| 29 | +fastcgi_param SERVER_NAME $http_host; |
| 30 | + |
| 31 | +# PHP only, required if PHP was built with --enable-force-cgi-redirect |
| 32 | +fastcgi_param REDIRECT_STATUS 200; |
| 33 | + |
| 34 | +fastcgi_index index.php; |
| 35 | +fastcgi_connect_timeout 10; |
| 36 | +fastcgi_send_timeout 600; |
| 37 | +fastcgi_read_timeout 600; |
| 38 | +fastcgi_buffer_size 32k; |
| 39 | +fastcgi_buffers 32 4k; |
| 40 | +fastcgi_busy_buffers_size 64k; |
| 41 | +fastcgi_temp_file_write_size 256k; |
| 42 | +fastcgi_intercept_errors on; |
| 43 | +fastcgi_pass_header on; |
| 44 | +fastcgi_keep_conn on; |
0 commit comments