Skip to content

Commit 8b2db72

Browse files
committed
Fjerner host header da vi får 404 når den settes
1 parent f360868 commit 8b2db72

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

proxy.nginx

-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
access_log off;
33
error_log /dev/stdout info;
44
charset utf-8;
5-
log_format debug 'Host: "$host", HTTP Host: "$http_host"'
65

76

87
client_body_buffer_size 20M; # Default er satt veldig lavt. Får problemer med enkelte dokument queries.
@@ -62,7 +61,6 @@ server {
6261

6362

6463
location "/k9/sak/" {
65-
proxy_set_header Host $host;
6664
proxy_pass "${APP_URL}";
6765
proxy_intercept_errors on;
6866
error_page 401 = @401_json;
@@ -72,7 +70,6 @@ server {
7270
}
7371

7472
location "/k9/formidling/" {
75-
proxy_set_header Host $host;
7673
proxy_pass "${APP_URL_K9FORMIDLING}";
7774
proxy_intercept_errors on;
7875
error_page 401 = @401_json;
@@ -82,7 +79,6 @@ server {
8279
}
8380

8481
location "/k9/formidling/dokumentdata" {
85-
proxy_set_header Host $http_host;
8682
proxy_pass "${APP_URL_K9FORMIDLING_DD}";
8783
proxy_intercept_errors on;
8884
error_page 401 = @401_json;
@@ -92,7 +88,6 @@ server {
9288
}
9389

9490
location "/k9/oppdrag/" {
95-
proxy_set_header Host $host;
9691
proxy_pass "${APP_URL_K9OPPDRAG}";
9792
proxy_intercept_errors on;
9893
error_page 401 = @401_json;
@@ -102,7 +97,6 @@ server {
10297
}
10398

10499
location "/k9/klage/" {
105-
proxy_set_header Host $host;
106100
proxy_pass "${APP_URL_KLAGE}";
107101
proxy_intercept_errors on;
108102
error_page 401 = @401_json;
@@ -112,7 +106,6 @@ server {
112106
}
113107

114108
location "/k9/tilbake/" {
115-
proxy_set_header Host $host;
116109
proxy_pass "${APP_URL_K9TILBAKE}";
117110
proxy_intercept_errors on;
118111
error_page 401 = @401_json;
@@ -122,7 +115,6 @@ server {
122115
}
123116

124117
location "/k9/fordel/" {
125-
proxy_set_header Host $host;
126118
proxy_pass "${APP_URL_K9FORDEL}";
127119
proxy_intercept_errors on;
128120
error_page 401 = @401_json;

0 commit comments

Comments
 (0)