Skip to content
Snippets Groups Projects
Commit 1b705904 authored by Pawel Chojnacki's avatar Pawel Chojnacki
Browse files

Add comments explaining reason behind $http_host_with_default

+ add CHANGELOG.md entry
parent e3a4bdd0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -27,6 +27,7 @@ are not the same (O Schwede) c4e83c5
- Remove deprecated git-annex configuration 527b942
- Expose GitLab Workhorse configuration file 835144e
- EE: Add a tracking database for GitLab Geo f1077d10
- Provide default Host header for requests that do not have one
 
8.17.3
 
Loading
Loading
Loading
Loading
@@ -498,8 +498,10 @@ server {
return 418;
}
 
# For protocol upgrades from HTTP/1.0 to HTTP/1.1 we need to provide Host header if its missing
if ($http_host = "") {
set $http_host_with_default "localhost";
# use one of values defined in server_name
set $http_host_with_default "git.example.com";
}
 
if ($http_host != "") {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment