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 e8a2094 commit c1c5367
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -130,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 Expand Up @@ -164,4 +167,4 @@ server {
access_log off;
stub_status;
}
}
}

0 comments on commit c1c5367

Please sign in to comment.