Skip to content

Commit

Permalink
Mitigate https://httpoxy.org/ vulnerabilities in nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreesen authored and brusch committed Nov 12, 2021
1 parent 527a3be commit f15d022
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ upstream php-pimcore10 {
server php-fpm:9000;
}


upstream php-pimcore10-debug {
server php-fpm-debug:9000;
}
Expand Down Expand Up @@ -131,6 +130,9 @@ server {
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $realpath_root;

# Mitigate https://httpoxy.org/ vulnerabilities
fastcgi_param HTTP_PROXY "";

# If Xdebug session is requested, pass it to the Xdebug enabled container
if ($http_cookie ~* "XDEBUG_SESSION") {
fastcgi_pass php-pimcore10-debug;
Expand Down

0 comments on commit f15d022

Please sign in to comment.