Skip to content

Commit

Permalink
hardcode SERVER_NAME and HTTP_HOST www.santanderconsumer.no
Browse files Browse the repository at this point in the history
  • Loading branch information
belskiiartem committed Sep 8, 2024
1 parent c225395 commit ac634b7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions charts/wp-project-skeleton/templates/configmap-nginx-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,6 @@ data:
# include the "?$args" part so non-default permalinks doesn't break when using query string
try_files $uri $uri/ /index.php?$args;
}
{{- if .Values.nginx.magasinet_to_root }}
location /magasinet/ {
rewrite ^/magasinet/(.*)$ /$1 break;
try_files $uri $uri/ /index.php?$args;
}
{{- end }}
location ~ \.php$ {
# Redirect to canonical domain
Expand All @@ -174,8 +167,8 @@ data:
fastcgi_param HTTP_X_REQUEST_START "t=${msec}";
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SERVER_NAME $host;
fastcgi_param HTTP_HOST $host;
fastcgi_param SERVER_NAME "www.santanderconsumer.no";
fastcgi_param HTTP_HOST "www.santanderconsumer.no";
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
fastcgi_read_timeout 300;
Expand Down

0 comments on commit ac634b7

Please sign in to comment.